Skip to content

Commit 5946e93

Browse files
committed
Added one more workflow
1 parent 3eb4214 commit 5946e93

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+

0 commit comments

Comments
 (0)