From d7a1148b58ece612fc831273a416ca133da98df7 Mon Sep 17 00:00:00 2001 From: Thaung Htike Oo Date: Fri, 10 Feb 2023 02:04:07 +0630 Subject: [PATCH] run tests on all push and deploy only on tags --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 186f082..ee23fb4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: - name: Install serverless run: npm install -g serverless serverless-python-requirements - name: Deploy Production - if: github.ref == 'refs/heads/main' + if: startsWith(github.ref, 'refs/tags/') run: serverless deploy -s prod env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}