File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Set Documentation Page as 'Down for Maintenance'
2+ on :
3+ workflow_dispatch :
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-24.04
8+ steps :
9+ - name : Build docs
10+ run : |
11+ mkdir build
12+ cd build
13+ mkdir documentation
14+ cd documentation
15+ echo "<h1>This webpage is Down for Maintenance</h1>Please try again later." > index.html
16+ - name : Setup Pages
17+ id : pages
18+ uses : actions/configure-pages@v5
19+ - name : Upload static files as artifact
20+ id : deployment
21+ uses : actions/upload-pages-artifact@v3
22+ with :
23+ path : build/documentation/
24+ retention-days : 1
25+ deploy :
26+ runs-on : ubuntu-24.04
27+ needs : build
28+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
29+ permissions :
30+ pages : write # to deploy to Pages
31+ id-token : write # to verify the deployment originates from an appropriate source
32+
33+ environment :
34+ name : github-pages
35+ url : ${{ steps.deployment.outputs.page_url }}
36+ steps :
37+ - name : Deploy to GitHub Pages
38+ id : deployment
39+ uses : actions/deploy-pages@v4
40+
You can’t perform that action at this time.
0 commit comments