Skip to content

Commit f2ab1de

Browse files
authored
ci: Update build.yml workflow
1 parent dc46559 commit f2ab1de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ jobs:
416416
# -----------------------------------------------------------------
417417
staging:
418418
name: Deploy to Staging
419-
if: ${{ !failure() && !cancelled() && (github.event.inputs.deploy == 'Staging Only' || github.event.inputs.deploy == 'Staging + Prod') }}
419+
if: ${{ !failure() && !cancelled() && (github.event.inputs.deploy == 'Staging Only' || github.event.inputs.deploy == 'Staging + Prod' || github.ref_name == 'release') }}
420420
needs: [prepare, release]
421421
runs-on: ubuntu-latest
422422
environment:
@@ -441,7 +441,7 @@ jobs:
441441
# -----------------------------------------------------------------
442442
prod:
443443
name: Deploy to Production
444-
if: ${{ !failure() && !cancelled() && github.event.inputs.deploy == 'Staging + Prod' }}
444+
if: ${{ !failure() && !cancelled() && (github.event.inputs.deploy == 'Staging + Prod' || github.ref_name == 'release') }}
445445
needs: [staging]
446446
runs-on: ubuntu-latest
447447
environment:

0 commit comments

Comments
 (0)