ci(gitea): deploy also on manual runs of main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AqpXh3hQMMaC74pTjFq4it
This commit is contained in:
@@ -76,7 +76,7 @@ jobs:
|
|||||||
deploy-staging:
|
deploy-staging:
|
||||||
name: Deploy to staging
|
name: Deploy to staging
|
||||||
needs: ["lint-php", "phpcs", "file-size", "phpunit", "lint-js"]
|
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
|
runs-on: peptide-vps
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -105,7 +105,7 @@ jobs:
|
|||||||
# Smoke is a gate: production runs only if staging deploy AND smoke succeeded.
|
# Smoke is a gate: production runs only if staging deploy AND smoke succeeded.
|
||||||
# PROD_DEPLOY_ENABLED (org variable) is the cutover switch / kill switch.
|
# PROD_DEPLOY_ENABLED (org variable) is the cutover switch / kill switch.
|
||||||
needs: [deploy-staging, smoke]
|
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
|
runs-on: peptide-vps
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user