File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 5656 env :
5757 PYTHON_VERSION : " 3.11" # Use a single version for docs
5858 needs : [test, lint]
59+ permissions :
60+ contents : read
61+ pages : write
62+ id-token : write
5963 steps :
6064 - uses : actions/checkout@v4
6165 - name : Install Python and UV
@@ -70,10 +74,12 @@ jobs:
7074 uv run sphinx-build source build/html
7175 touch build/html/.nojekyll
7276 working-directory : docs
73- - name : Deploy to GitHub Pages
77+ - name : Upload artifact
7478 if : github.ref == 'refs/heads/main'
75- uses : peaceiris/ actions-gh- pages@v3
79+ uses : actions/upload- pages-artifact @v3
7680 with :
77- github_token : ${{ secrets.GITHUB_TOKEN }}
78- publish_dir : ./docs/build/html
79- force_orphan : true
81+ path : ./docs/build/html
82+ - name : Deploy to GitHub Pages
83+ if : github.ref == 'refs/heads/main'
84+ id : deployment
85+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments