fix(ci): 生产部署加门禁 - 仅 main 分支触发 build/deploy production #1649

Merged
auto-approve-bot merged 1 commits from fix/production-deploy-gate into develop 2026-09-03 16:21:32 +08:00
+2 -2
View File
@@ -1462,7 +1462,7 @@ jobs:
- unit-tests
- frontend-lint
- frontend-unit-test
if: github.event_name == 'push' && !failure() && !cancelled()
if: github.event_name == 'push' && github.ref_name == 'main' && !failure() && !cancelled()
strategy:
fail-fast: false
matrix:
@@ -1608,7 +1608,7 @@ jobs:
concurrency:
group: deploy-production-${{ gitea.ref }}
cancel-in-progress: false
# if: removed - runs after build-production succeeds
if: github.event_name == 'push' && github.ref_name == 'main'
needs:
- build-production
steps: