11name : Docs2Pages
2- on : [push, pull_request, workflow_dispatch]
2+ on : [ push, pull_request, workflow_dispatch ]
33permissions :
44 contents : write
55
66jobs :
77 build-docs :
88 runs-on : ubuntu-latest
99 steps :
10- - name : Checkout
11- uses : actions/checkout@v3
12- - uses : actions/setup-python@v5
13- with :
14- python-version : ' 3.12'
10+ - name : Checkout
11+ uses : actions/checkout@v5
1512
16- - name : Install dependencies
17- run : |
18- pip install uv
19- uv sync --all-extras
13+ - name : Install uv
14+ uses : astral-sh/setup-uv@v6
2015
21- - name : Sphinx build
22- run : |
23- uv run sphinx-build -b html docs/source docs/build/html
16+ - name : Install Python 3.13
17+ run : uv python install 3.13
2418
25- - name : Deploy documentation
26- uses : peaceiris/actions-gh-pages@v4
27- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
28- with :
29- publish_branch : gh-pages
30- github_token : ${{ secrets.GITHUB_TOKEN }}
31- publish_dir : ./docs/build/html
32- force_orphan : true
19+ - name : Install dependencies
20+ run : uv sync --all-extras
21+
22+ - name : Sphinx build
23+ run : |
24+ uv run sphinx-build -b html docs/source docs/build/html
25+
26+ - name : Deploy documentation
27+ uses : peaceiris/actions-gh-pages@v4
28+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
29+ with :
30+ publish_branch : gh-pages
31+ github_token : ${{ secrets.GITHUB_TOKEN }}
32+ publish_dir : ./docs/build/html
33+ force_orphan : true
0 commit comments