File tree Expand file tree Collapse file tree 1 file changed +42
-10
lines changed
Expand file tree Collapse file tree 1 file changed +42
-10
lines changed Original file line number Diff line number Diff line change 1- name : ci
1+ name : Publish Docs
22on :
33 push :
44 branches :
55 - main
6+
7+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
14+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
15+ concurrency :
16+ group : " pages"
17+ cancel-in-progress : false
18+
619jobs :
7- deploy :
20+ build :
821 runs-on : ubuntu-latest
922 steps :
10- - uses : actions/checkout@v3
11- with :
12- token : ${{ secrets.GH_TOKEN }}
13- - uses : actions/setup-python@v4
23+ - name : Checkout
24+ uses : actions/checkout@v3
25+
26+ - name : Setup Python
27+ uses : actions/setup-python@v4
1428 with :
1529 python-version : 3.x
16- - run : pip install mkdocs-material
17- - run : git config --global user.name "GitHub Actions"
18- -
run :
git config --global user.email "[email protected] " 19- - run : mkdocs gh-deploy --force
30+
31+ - name : Install Dependencies
32+ run : pip install mkdocs-material
33+
34+ - name : Build Site
35+ run : mkdocs build
36+
37+ - name : Upload artifact
38+ uses : actions/upload-pages-artifact@v2
39+ with :
40+ path : ' site'
41+
42+ deploy :
43+ environment :
44+ name : github-pages
45+ url : ${{ steps.deployment.outputs.page_url }}
46+ runs-on : ubuntu-latest
47+ needs : build
48+ steps :
49+ - name : Deploy to GitHub Pages
50+ id : deployment
51+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments