Skip to content

Commit 5fa0315

Browse files
committed
use githubs action to publish doc
1 parent 1a60ea8 commit 5fa0315

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/main.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ jobs:
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

0 commit comments

Comments
 (0)