ci: 调整workflow
- 添加构建产物的上传/下载
This commit is contained in:
@ -21,3 +21,20 @@ jobs:
|
||||
run: pnpm install
|
||||
- name: Build project
|
||||
run: pnpm run build
|
||||
- name: Upload build output
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: nuxt-output
|
||||
path: .output
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
- name: Download build output
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: nuxt-output
|
||||
path: .output
|
||||
|
||||
Reference in New Issue
Block a user