8
8
pull_request :
9
9
branches :
10
10
- main
11
+ release :
12
+ types :
13
+ - released
11
14
12
15
env :
13
16
PIPELINE_USER_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
@@ -313,7 +316,7 @@ jobs:
313
316
# trigger the integration tests here
314
317
315
318
load-gamma-matrix2 :
316
- if : ${{ github.ref == 'refs/heads/main' || startsWith( github.ref, 'refs/tags/v') }}
319
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
317
320
needs : [ integration-test ]
318
321
runs-on : ubuntu-latest
319
322
outputs :
@@ -324,7 +327,7 @@ jobs:
324
327
run : echo "::set-output name=matrix::{\"include\":$(jq -r tostring .github/workflows/gamma.json)}"
325
328
326
329
deploy-gamma :
327
- if : ${{ github.ref == 'refs/heads/main' || startsWith( github.ref, 'refs/tags/v') }}
330
+ if : ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
328
331
needs : [load-gamma-matrix2]
329
332
runs-on : ubuntu-latest
330
333
strategy :
@@ -377,7 +380,7 @@ jobs:
377
380
--role-arn ${{ matrix.cloudformation_execution_role }}
378
381
379
382
load-prod-matrix2 :
380
- if : ${{ startsWith( github.ref, 'refs/tags/v') }}
383
+ if : ${{ github.event_name == 'release' }}
381
384
needs : [ deploy-gamma ]
382
385
runs-on : ubuntu-latest
383
386
outputs :
@@ -388,7 +391,7 @@ jobs:
388
391
run : echo "::set-output name=matrix::{\"include\":$(jq -r tostring .github/workflows/prod.json)}"
389
392
390
393
deploy-prod :
391
- if : ${{ startsWith( github.ref, 'refs/tags/v') }}
394
+ if : ${{ github.event_name == 'release' }}
392
395
needs : [load-prod-matrix2]
393
396
runs-on : ubuntu-latest
394
397
environment : prod
0 commit comments