diff --git a/.github/workflows/deploy-app.yml b/.github/workflows/deploy-app.yml index 7ac6703..87188e0 100644 --- a/.github/workflows/deploy-app.yml +++ b/.github/workflows/deploy-app.yml @@ -79,7 +79,10 @@ jobs: deploy-production: name: Deploy to Production - needs: [deploy-staging] + # Smoke is now a GATE: a smoke FAILURE blocks production. A deliberately + # skipped smoke (run_smoke: false) still allows prod via the if-condition. + needs: [deploy-staging, smoke] + if: ${{ !cancelled() && needs.deploy-staging.result == 'success' && needs.smoke.result != 'failure' }} runs-on: ubuntu-latest environment: production steps: