Skip to content

Commit

Permalink
ci: fix release job
Browse files Browse the repository at this point in the history
  • Loading branch information
jta committed May 24, 2024
1 parent 332c3e3 commit 267cd38
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,18 @@ jobs:
- name: AWS Info
run: aws sts get-caller-identity

- name: Set release tag (beta)
if: github.event_name == 'push'
run: echo "TAG=beta" >> $GITHUB_ENV

- name: Set release tag (latest)
if: github.event_name == 'workflow_dispatch'
run: echo "TAG=latest" >> $GITHUB_ENV

- name: aws sam release
run: make release-all
env:
TAG: fromJSON('{"workflow_dispatch": "latest", "push": "beta"}')[github.event_name]
# TAG is set implicitly
VERSION: ${{ needs.github-release.outputs.VERSION }}
AWS_REGION: ${{ matrix.region }}

Expand Down

0 comments on commit 267cd38

Please sign in to comment.