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
This commit is contained in:
voson
2026-03-20 20:33:47 +08:00
parent 5df4141935
commit 786675ce42

View File

@@ -3,7 +3,7 @@ name: Secrets MCP — Build & Release
on: on:
push: push:
branches: [main, feat/mcp] branches: [main, feat/mcp, mcp]
paths: paths:
- 'crates/**' - 'crates/**'
- 'Cargo.toml' - 'Cargo.toml'
@@ -250,7 +250,7 @@ jobs:
# Google OAuth / SERVER_MASTER_KEY / SECRETS_DATABASE_URL 等勿写入 CI请在 ECS 上 # Google OAuth / SERVER_MASTER_KEY / SECRETS_DATABASE_URL 等勿写入 CI请在 ECS 上
# /opt/secrets-mcp/.env 配置(见 deploy/.env.example # /opt/secrets-mcp/.env 配置(见 deploy/.env.example
# 若仓库 main 仍为纯 CLI、仅 feat/mcp 含本 workflow请去掉条件里的 main避免误部署。 # 若仓库 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 runs-on: debian
timeout-minutes: 10 timeout-minutes: 10
steps: steps: