Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/test-deploy-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ jobs:
deploy:
name: Deploy to AWS Lambda
needs: [ 'tests', 'lint' ]
if: github.ref_name == 'main' || github.ref_name == 'develop'
environment: ${{ github.ref_name }}
if: github.ref_name == 'main' || startsWith(github.ref, 'refs/tags/')
environment:
name: ${{ startsWith(github.ref, 'refs/tags/') && 'prod' || 'dev' }}
runs-on: ubuntu-latest
concurrency:
group: deploy-${{ github.ref }}-${{ matrix.region }}
Expand Down Expand Up @@ -84,7 +85,6 @@ jobs:
run: CGO_ENABLED=0 go build -tags lambda.norpc -ldflags="-s -w" -o bootstrap ./lambda

- name: CDK Deploy
if: github.ref_name == 'develop' || github.ref_name == 'main'
env:
AWS_REGION: ${{ matrix.region }}
ENVIRONMENT: ${{ vars.STAGE }}
Expand All @@ -100,7 +100,7 @@ jobs:
build-and-publish:
name: Build and Publish
needs: [ 'tests', 'lint' ]
if: github.ref_name == 'main' || github.ref_name == 'develop' || startsWith(github.ref, 'refs/tags/')
if: github.ref_name == 'main' || startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down