From ef6877768a3e232196f0a5047257358f1f36c338 Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Fri, 26 Sep 2025 14:33:45 +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 - 只有master分支更新时执行项目部署操作 --- .gitea/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index ae4e1b7..b7e741b 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -26,7 +26,6 @@ jobs: ${{ runner.os }}-pnpm- - name: Install dependencies run: pnpm install - # Nuxt 构建缓存,加快二次构建 - name: Cache Nuxt build uses: actions/cache@v4 with: @@ -36,7 +35,8 @@ jobs: ${{ runner.os }}-nuxt- - name: Build project run: pnpm run build - - name: Rsync build artifact to server + - name: Deploy to server + if: github.ref == 'refs/heads/master' uses: easingthemes/ssh-deploy@main with: ARGS: "-rlgoDzvc -i --delete"