88 permissions :
99 contents : write
1010 steps :
11- - uses : actions/checkout@v4
12- with :
13- persist-credentials : false
14- - name : Set up Python
15- uses : actions/setup-python@v5
16- with :
17- python-version : ' 3.11'
18- - name : Install dependencies
19- run : |
20- python -m pip install --upgrade pip
21- pip install -r docs/requirements.txt
22- - name : Install your package
23- run : pip install -e .
24- - name : Build docs with clean rebuild
25- run : |
26- sphinx-build -a -E -b html docs/source docs/build/html
27- - name : Upload artifacts
28- uses : actions/upload-artifact@v4
29- with :
30- name : html-docs
31- path : docs/build/html/
32- - name : Deploy
33- uses : peaceiris/actions-gh-pages@v3
34- if : github.ref == 'refs/heads/main'
35- with :
36- github_token : ${{ secrets.GITHUB_TOKEN }}
37- publish_dir : docs/build/html
38- force_orphan : true
11+ - uses : actions/checkout@v4
12+ with :
13+ persist-credentials : false
14+ - name : Set up Python
15+ uses : actions/setup-python@v5
16+ with :
17+ python-version : " 3.11"
18+ - name : Install dependencies
19+ run : |
20+ python -m pip install --upgrade pip
21+ pip install -r docs/requirements.txt
22+ - name : Install your package
23+ run : pip install -e .
24+ - name : Build multiversion docs
25+ run : |
26+ sphinx-multiversion docs/source docs/build/html
27+ - name : Upload artifacts
28+ uses : actions/upload-artifact@v4
29+ with :
30+ name : html-docs
31+ path : docs/build/html/
32+ - name : Deploy
33+ uses : peaceiris/actions-gh-pages@v3
34+ if : github.ref == 'refs/heads/main'
35+ with :
36+ github_token : ${{ secrets.GITHUB_TOKEN }}
37+ publish_dir : docs/build/html
38+ force_orphan : true
0 commit comments