File tree Expand file tree Collapse file tree 1 file changed +30
-12
lines changed
Expand file tree Collapse file tree 1 file changed +30
-12
lines changed Original file line number Diff line number Diff line change 1- name : Deploy MkDocs site to GitHub Pages
1+ name : Deploy MkDocs to GitHub Pages
2+
23on :
34 push :
45 branches : [ main ]
6+
57permissions :
6- contents : write
8+ contents : read
79 pages : write
810 id-token : write
11+
12+ concurrency :
13+ group : " pages"
14+ cancel-in-progress : true
15+
916jobs :
10- build-deploy :
17+ build :
1118 runs-on : ubuntu-latest
1219 steps :
1320 - name : Check out repository
1421 uses : actions/checkout@v4
15- - name : Setup Python
22+
23+ - name : Set up Python
1624 uses : actions/setup-python@v5
1725 with :
18- python-version : ' 3.x'
26+ python-version : " 3.x"
27+
1928 - name : Install dependencies
2029 run : |
2130 pip install -r requirements.txt
22- - name : Build site
23- run : mkdocs build --strict
24- - name : Deploy to GitHub Pages
25- uses : peaceiris/ actions-gh- pages@v3
31+ # If you don't need strict link checking, omit --strict below
32+ mkdocs build --site-dir site
33+ - name : Upload artifact
34+ uses : actions/upload- pages-artifact @v3
2635 with :
27- github_token : ${{ secrets.GITHUB_TOKEN }}
28- publish_dir : ./site
29- publish_branch : gh-pages
36+ path : ./site
37+
38+ deploy :
39+ needs : build
40+ runs-on : ubuntu-latest
41+ environment :
42+ name : github-pages
43+ url : ${{ steps.deployment.outputs.page_url }}
44+ steps :
45+ - name : Deploy to GitHub Pages
46+ id : deployment
47+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments