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 }}