Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 50a57b2

Browse files
committed
feat: upload assets
1 parent b6a09e2 commit 50a57b2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/deploy-ghpage.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,21 @@ jobs:
3535
run: pnpm install --frozen-lockfile
3636

3737
- name: Build Docs
38+
id: docs-build
3839
env:
3940
NODE_OPTIONS: --max_old_space_size=8192
4041
DEPLOY_PLATFORM: github
4142
run: |-
4243
pnpm run docs:build
4344
> docs/.vuepress/dist/.nojekyll
4445
46+
- name: Upload Build Artifacts
47+
if: github.event_name == 'pull_request'
48+
uses: actions/upload-artifact@v3
49+
with:
50+
name: docs-build
51+
path: docs/.vuepress/dist
52+
4553
- name: Deploy
4654
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4755
uses: peaceiris/actions-gh-pages@v4

0 commit comments

Comments
 (0)