Skip to content

Commit c1c6e72

Browse files
author
NAWS
committed
Update deploy.yml
1 parent 6a76566 commit c1c6e72

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,23 @@ on:
55
branches:
66
- main
77

8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
89
permissions:
9-
contents: write # needed to push to gh-pages branch
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
1019

1120
jobs:
1221
deploy:
22+
environment:
23+
name: github-pages
24+
url: ${{ steps.deployment.outputs.page_url }}
1325
runs-on: ubuntu-latest
1426
steps:
1527
- name: Checkout repository
@@ -27,5 +39,18 @@ jobs:
2739
- name: Fetch and inject token list
2840
run: python scripts/fetch_token_list.py
2941

42+
- name: Build with MkDocs
43+
run: mkdocs build
44+
45+
- name: Setup Pages
46+
uses: actions/configure-pages@v5
47+
48+
- name: Upload artifact
49+
uses: actions/upload-pages-artifact@v3
50+
with:
51+
# Upload entire repository
52+
path: './site'
53+
3054
- name: Deploy to GitHub Pages
31-
run: mkdocs gh-deploy --force --clean
55+
id: deployment
56+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)