Skip to content

Commit 181fbd0

Browse files
committed
fix(ci): update deploy workflow to update gh-pages branch
1 parent 735c375 commit 181fbd0

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ concurrency:
1818
cancel-in-progress: false
1919

2020
jobs:
21-
# Build job
22-
build:
21+
deploy:
2322
runs-on: ubuntu-latest
2423
steps:
2524
- name: Checkout
2625
uses: actions/checkout@v4
2726
with:
28-
fetch-depth: 0
27+
fetch-depth: 0
2928
- name: Setup pnpm
3029
uses: pnpm/action-setup@v4
3130
with:
@@ -41,20 +40,8 @@ jobs:
4140
run: pnpm install
4241
- name: Build with VitePress
4342
run: pnpm build
44-
- name: Upload artifact
45-
uses: actions/upload-pages-artifact@v3
46-
with:
47-
path: docs/.vitepress/dist
48-
49-
# Deployment job
50-
deploy:
51-
environment:
52-
name: github-pages
53-
url: ${{ steps.deployment.outputs.page_url }}
54-
needs: build
55-
runs-on: ubuntu-latest
56-
name: Deploy
57-
steps:
5843
- name: Deploy to GitHub Pages
59-
id: deployment
60-
uses: actions/deploy-pages@v4
44+
uses: peaceiris/actions-gh-pages@v4
45+
with:
46+
github_token: ${{ secrets.GITHUB_TOKEN }}
47+
publish_dir: ./dist

0 commit comments

Comments
 (0)