Skip to content

Commit dc73c7d

Browse files
committed
ops(deploy): 拆分构建和部署流程,使用artifacts传递构建产物
1 parent 9588e95 commit dc73c7d

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,23 @@ jobs:
2727
- name: Build
2828
run: GITHUB_PAGES=true npm run build
2929

30+
- name: Upload artifact
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: dist
34+
path: dist
35+
36+
deploy:
37+
needs: build
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Download artifact
41+
uses: actions/download-artifact@v4
42+
with:
43+
name: dist
44+
3045
- name: Deploy
3146
uses: peaceiris/actions-gh-pages@v4
3247
with:
3348
github_token: ${{ secrets.GITHUB_TOKEN }}
34-
publish_dir: ./dist
49+
publish_dir: ./

0 commit comments

Comments
 (0)