Skip to content

Commit d7a1148

Browse files
author
Thaung Htike Oo
committed
run tests on all push and deploy only on tags
1 parent e7d95ed commit d7a1148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install serverless
3131
run: npm install -g serverless serverless-python-requirements
3232
- name: Deploy Production
33-
if: github.ref == 'refs/heads/main'
33+
if: startsWith(github.ref, 'refs/tags/')
3434
run: serverless deploy -s prod
3535
env:
3636
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

0 commit comments

Comments
 (0)