From c4cd64eb6b83b340ea3f9d611012391360efacd0 Mon Sep 17 00:00:00 2001 From: peptiderepo-ops Date: Sat, 24 Oct 2026 09:57:51 +0000 Subject: [PATCH] ci(gitea): deploy also on manual runs of main Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01AqpXh3hQMMaC74pTjFq4it --- .gitea/workflows/pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index 3cd894b..3860dc4 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -90,7 +90,7 @@ jobs: deploy-staging: name: Deploy to staging needs: ["lint-php", "phpcs", "file-size", "phpunit", "lint-js", "validate"] - 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 @@ -119,7 +119,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