Skip to content

Commit 3986b67

Browse files
committed
ci: move to github actions docs deployment
Signed-off-by: Ramon Roche <[email protected]>
1 parent b3bc907 commit 3986b67

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/docs.yml

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

88
jobs:
9-
deploy:
9+
build:
1010
runs-on: ubuntu-latest
11-
1211
defaults:
1312
run:
1413
working-directory: docs
@@ -30,8 +29,19 @@ jobs:
3029
- name: Build VitePress site
3130
run: npm run docs:build
3231

33-
- name: Deploy to GitHub Pages
34-
uses: peaceiris/actions-gh-pages@v3
32+
- name: Upload site artifact
33+
uses: actions/upload-pages-artifact@v3
3534
with:
36-
github_token: ${{ secrets.GITHUB_TOKEN }}
37-
publish_dir: docs/.vitepress/dist
35+
path: .vitepress/dist
36+
37+
deploy:
38+
needs: build
39+
runs-on: ubuntu-latest
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
44+
steps:
45+
- name: Deploy to GitHub Pages
46+
id: deployment
47+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)