File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - main
77
8+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
89permissions :
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
1120jobs :
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
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
You can’t perform that action at this time.
0 commit comments