Skip to content

Commit 1f57966

Browse files
committed
Fix publish gh-pages
1 parent 3563fc1 commit 1f57966

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.github/workflows/gh-pages.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
deploy:
9+
build:
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -36,16 +36,19 @@ jobs:
3636
uv pip install -e .
3737
uv run mkdocs build --verbose
3838
39-
- name: Upload Artifacts
40-
uses: actions/upload-artifact@v4
39+
- name: Upload static files as artifact
40+
id: deployment
41+
uses: actions/upload-pages-artifact@v3
4142
with:
42-
name: gh-pages
43-
path: ./site
44-
45-
# - name: Deploy to GitHub Pages
46-
# uses: peaceiris/actions-gh-pages@v3
47-
# with:
48-
# github_token: ${{ secrets.GITHUB_TOKEN }}
49-
# publish_dir: ./site
50-
# force_orphan: true
51-
43+
path: site/
44+
45+
deploy:
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
runs-on: ubuntu-latest
50+
needs: build
51+
steps:
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)