Skip to content

Commit 1d47019

Browse files
committed
chore: 更新github pages 的自动部署配置
1 parent a478db0 commit 1d47019

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222

2323
- name: Install pnpm
2424
uses: pnpm/action-setup@v4
25+
with:
26+
version: 11
2527

2628
- name: Set up Node.js
2729
uses: actions/setup-node@v4
@@ -33,8 +35,10 @@ jobs:
3335
pnpm install --frozen-lockfile
3436
pnpm build
3537
36-
- name: Deploy
37-
uses: JamesIves/github-pages-deploy-action@v4
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
3840
with:
39-
folder: dist
40-
branch: gh-pages
41+
path: './dist'
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)