From d154fed609ee18273eac752c84ead3121c7502ab Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Wed, 24 Sep 2025 16:13:21 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E8=B0=83=E6=95=B4workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加构建产物的上传/下载 --- .gitea/workflows/deploy.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 695e810..3cfbfe6 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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