From 786675ce42baf6e34942a0b0d4771cc9102f3fda Mon Sep 17 00:00:00 2001 From: voson Date: Fri, 20 Mar 2026 20:33:47 +0800 Subject: [PATCH] ci: allow secrets-mcp workflow on mcp branch Enable build and deploy jobs when pushing the current mcp branch so CI artifacts can be used for deployment without waiting for manual server compilation. Made-with: Cursor --- .gitea/workflows/secrets.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/secrets.yml b/.gitea/workflows/secrets.yml index d8e2330..8599b9a 100644 --- a/.gitea/workflows/secrets.yml +++ b/.gitea/workflows/secrets.yml @@ -3,7 +3,7 @@ name: Secrets MCP — Build & Release on: push: - branches: [main, feat/mcp] + branches: [main, feat/mcp, mcp] paths: - 'crates/**' - 'Cargo.toml' @@ -250,7 +250,7 @@ jobs: # Google OAuth / SERVER_MASTER_KEY / SECRETS_DATABASE_URL 等勿写入 CI,请在 ECS 上 # /opt/secrets-mcp/.env 配置(见 deploy/.env.example)。 # 若仓库 main 仍为纯 CLI、仅 feat/mcp 含本 workflow,请去掉条件里的 main,避免误部署。 - if: needs.build-linux.result == 'success' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feat/mcp') + if: needs.build-linux.result == 'success' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feat/mcp' || github.ref == 'refs/heads/mcp') runs-on: debian timeout-minutes: 10 steps: