diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index 1948e95..e18580d 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -76,7 +76,7 @@ jobs: deploy-staging: name: Deploy to staging needs: ["lint-php", "phpcs", "file-size", "phpunit", "lint-js"] - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' }} runs-on: peptide-vps steps: - uses: actions/checkout@v4 @@ -105,7 +105,7 @@ jobs: # Smoke is a gate: production runs only if staging deploy AND smoke succeeded. # PROD_DEPLOY_ENABLED (org variable) is the cutover switch / kill switch. needs: [deploy-staging, smoke] - if: ${{ vars.PROD_DEPLOY_ENABLED == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main' }} + if: ${{ vars.PROD_DEPLOY_ENABLED == 'true' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' }} runs-on: peptide-vps steps: - uses: actions/checkout@v4