Skip to content

Commit 44a7a8a

Browse files
authored
Merge pull request #28 from thaunghtike-share/thaung/issue-26
run tests on all push and deploy only on tags
2 parents 5dda601 + d7a1148 commit 44a7a8a

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
@@ -35,7 +35,7 @@ jobs:
3535
- name: Install serverless
3636
run: npm install -g serverless serverless-python-requirements
3737
- name: Deploy Production
38-
if: github.ref == 'refs/heads/main'
38+
if: startsWith(github.ref, 'refs/tags/')
3939
run: serverless deploy -s prod
4040
env:
4141
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

0 commit comments

Comments
 (0)