ci(gitea): deploy also on manual runs of main
All checks were successful
CI / Deploy / PHP Lint (8.1) (push) Successful in 18s
CI / Deploy / PHP Lint (8.2) (push) Successful in 25s
CI / Deploy / PHP Lint (8.3) (push) Successful in 29s
CI / Deploy / PHPCS (WordPress standards) (push) Successful in 37s
CI / Deploy / 300-line rule (includes) (push) Successful in 13s
CI / Deploy / PHPUnit - stubs (PHP 8.1) (push) Successful in 27s
CI / Deploy / PHPUnit - stubs (PHP 8.2) (push) Successful in 22s
CI / Deploy / PHPUnit - stubs (PHP 8.3) (push) Successful in 18s
CI / Deploy / Deploy to staging (push) Successful in 23s
CI / Deploy / Audit - commit came from a PR (push) Successful in 59s
CI / Deploy / Smoke tests (staging) (push) Successful in 3m6s
CI / Deploy / Deploy to production (push) Has been skipped
All checks were successful
CI / Deploy / PHP Lint (8.1) (push) Successful in 18s
CI / Deploy / PHP Lint (8.2) (push) Successful in 25s
CI / Deploy / PHP Lint (8.3) (push) Successful in 29s
CI / Deploy / PHPCS (WordPress standards) (push) Successful in 37s
CI / Deploy / 300-line rule (includes) (push) Successful in 13s
CI / Deploy / PHPUnit - stubs (PHP 8.1) (push) Successful in 27s
CI / Deploy / PHPUnit - stubs (PHP 8.2) (push) Successful in 22s
CI / Deploy / PHPUnit - stubs (PHP 8.3) (push) Successful in 18s
CI / Deploy / Deploy to staging (push) Successful in 23s
CI / Deploy / Audit - commit came from a PR (push) Successful in 59s
CI / Deploy / Smoke tests (staging) (push) Successful in 3m6s
CI / Deploy / Deploy to production (push) Has been skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AqpXh3hQMMaC74pTjFq4it
This commit is contained in:
@@ -68,7 +68,7 @@ jobs:
|
||||
deploy-staging:
|
||||
name: Deploy to staging
|
||||
needs: ["lint-php", "phpcs", "file-size", "phpunit"]
|
||||
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
|
||||
@@ -97,7 +97,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
|
||||
|
||||
Reference in New Issue
Block a user