File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
99permissions :
10- contents : write
10+ contents : read
1111 pages : write
1212 id-token : write
1313
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : false
17+
1418jobs :
15- deploy :
19+ build :
1620 runs-on : ubuntu-latest
1721 steps :
18- - name : Debug GitHub Actions permissions
19- run : |
20- echo "GitHub Actions permissions:"
21- echo "GITHUB_TOKEN: ${{ github.token }}"
22-
23- - uses : actions/checkout@v4
24- with :
25- fetch-depth : 0
26-
27- - name : Debug git configuration
28- run : |
29- git config --list
30- git remote -v
31- - name : Set up Python 3.13
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+ - name : Setup Python
3225 uses : actions/setup-python@v5
3326 with :
3427 python-version : " 3.13"
3528 - name : Install dependencies
3629 run : pip install sphinx
3730 - name : Build documentation
3831 run : cd docs && sphinx-build -b html . _build
39- - name : Deploy to GitHub Pages
40- uses : peaceiris/actions-gh-pages@v3
32+ - name : Setup Pages
33+ uses : actions/configure-pages@v4
34+ - name : Upload artifact
35+ uses : actions/upload-pages-artifact@v3
4136 with :
42- github_token : ${{ secrets.GITHUB_TOKEN }}
43- publish_dir : docs/_build
44- force_orphan : true
37+ path : ' docs/_build'
38+
39+ deploy :
40+ environment :
41+ name : github-pages
42+ url : ${{ steps.deployment.outputs.page_url }}
43+ runs-on : ubuntu-latest
44+ needs : build
45+ steps :
46+ - name : Deploy to GitHub Pages
47+ id : deployment
48+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments