ci: 调整workflow

- 添加构建产物的上传/下载
This commit is contained in:
2025-09-24 16:13:21 +08:00
parent f12c8c050a
commit d154fed609

View File

@ -21,3 +21,20 @@ jobs:
run: pnpm install run: pnpm install
- name: Build project - name: Build project
run: pnpm run build 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