Skip to content

Commit 9f69f72

Browse files
committed
limit deployment based on branch
1 parent e06a5c6 commit 9f69f72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test-deploy-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
run: CGO_ENABLED=0 go build -tags lambda.norpc -ldflags="-s -w" -o bootstrap ./lambda
8585

8686
- name: CDK Deploy
87-
if: github.ref_name == 'develop' || github.ref_name == 'main'
87+
if: github.ref_name == 'develop'
8888
env:
8989
AWS_REGION: ${{ matrix.region }}
9090
ENVIRONMENT: ${{ vars.STAGE }}
@@ -97,7 +97,7 @@ jobs:
9797
run: cd cdk && cdk deploy --require-approval never
9898

9999
- name: Serverless Deploy
100-
if: github.ref_name == 'develop' || github.ref_name == 'main'
100+
if: github.ref_name == 'main'
101101
run: |
102102
docker compose run \
103103
-e LAMBDA_ROLE=${{ vars.LAMBDA_ROLE }} \

0 commit comments

Comments
 (0)