File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 - ' .github/workflows/docs.yml'
2020
2121permissions :
22- contents : write
22+ contents : read
23+ pages : write
24+ id-token : write
25+
26+ concurrency :
27+ group : " pages"
28+ cancel-in-progress : false
2329
2430jobs :
25- deploy :
31+ build :
2632 runs-on : ubuntu-latest
2733 steps :
2834 - name : Checkout code
5258 run : |
5359 mkdocs build --strict
5460
55- - name : Deploy to GitHub Pages
61+ - name : Setup Pages
5662 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
57- run : |
58- mkdocs gh-deploy --force
63+ uses : actions/configure-pages@v5
64+
65+ - name : Upload artifact
66+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
67+ uses : actions/upload-pages-artifact@v3
68+ with :
69+ path : ' site'
70+
71+ deploy :
72+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
73+ environment :
74+ name : github-pages
75+ url : ${{ steps.deployment.outputs.page_url }}
76+ runs-on : ubuntu-latest
77+ needs : build
78+ steps :
79+ - name : Deploy to GitHub Pages
80+ id : deployment
81+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1- mkdocs == 1.6.0
2- mkdocs-material == 9.5.39
1+ mkdocs == 1.6.1
2+ mkdocs-material == 9.5.47
You can’t perform that action at this time.
0 commit comments