File tree Expand file tree Collapse file tree 2 files changed +19
-18
lines changed Expand file tree Collapse file tree 2 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 1414 - main
1515
1616jobs :
17- check :
17+ build :
1818 if : ${{ github.actor != 'dependabot[bot]' }}
1919 name : Check docs build
2020 runs-on : ubuntu-latest
@@ -23,29 +23,29 @@ jobs:
2323 - name : Install Python
2424 uses : actions/setup-python@v5
2525 with :
26- python-version : " 3.12 "
26+ python-version : ' 3.x '
2727 - name : Install package with optional dependency 'doc'
2828 run : |
2929 python -m pip install --upgrade pip
3030 pip install .[doc]
3131 - name : Run MkDocs build
3232 working-directory : ./docs
3333 run : mkdocs build
34+ - name : Upload Pages artifact
35+ uses : actions/upload-pages-artifact@v3
36+ with :
37+ path : " docs/site/"
3438 publish :
3539 if : success() && startsWith(github.ref, 'refs/tags')
36- name : Publish docs on GH Pages
40+ needs : build
41+ permissions :
42+ pages : write
43+ id-token : write
44+ environment :
45+ name : github-pages
46+ url : ${{ steps.deployment.outputs.page_url }}
3747 runs-on : ubuntu-latest
3848 steps :
39- - uses : actions/checkout@v4
40- - name : Install Python
41- uses : actions/setup-python@v5
42- with :
43- python-version : " 3.12"
44- - name : Install package with optional dependency 'doc'
45- run : |
46- python -m pip install --upgrade pip
47- pip install .[doc]
48- - name : Run MkDocs deploy
49- working-directory : ./docs
50- run : mkdocs gh-deploy
51-
49+ - name : Deploy to GitHub Pages
50+ id : deployment
51+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 2323 - name : Set up Python version
2424 uses : actions/setup-python@v5
2525 with :
26- python-version : " 3.12 "
26+ python-version : ' 3.x '
2727 - name : Install extra dependencies
2828 run : |
2929 python -m pip install --upgrade pip
3636 - name : Run pre-commit hooks
3737 run : pre-commit run --all-files
3838 publish :
39+ needs : pre-commit
3940 if : success() && startsWith(github.ref, 'refs/tags')
4041 name : Publish release to PyPI
4142 runs-on : ubuntu-latest
4849 - name : Set up Python version
4950 uses : actions/setup-python@v5
5051 with :
51- python-version : " 3.12 "
52+ python-version : ' 3.x '
5253 - name : Build package
5354 run : |
5455 python -m pip install --upgrade build
You can’t perform that action at this time.
0 commit comments