Skip to content

Commit 9846877

Browse files
committed
fix
1 parent 386498f commit 9846877

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/publish_doc.yml

+15-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
build-and-deploy:
11+
build:
1212
runs-on: ubuntu-22.04
1313

1414
steps:
@@ -28,9 +28,18 @@ jobs:
2828
- name: Build documentation
2929
run: |
3030
sphinx-build docs/source docs/build/html
31-
32-
- name: Deploy to GitHub Pages
33-
uses: peaceiris/actions-gh-pages@v3
31+
- name: Upload static files as artifact
32+
id: deployment
33+
uses: actions/upload-pages-artifact@v3
3434
with:
35-
github_token: ${{ secrets.GITHUB_TOKEN }}
36-
publish_dir: docs/build/html
35+
path: docs/build/html/
36+
deploy:
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
runs-on: ubuntu-latest
41+
needs: build
42+
steps:
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)