Skip to content

Commit

Permalink
feat: add beta/latest convenience releases
Browse files Browse the repository at this point in the history
  • Loading branch information
obs-gh-colinhutchinson committed Oct 12, 2023
1 parent 4dd04cb commit a7dc8af
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: AWS Info
run: aws sts get-caller-identity

- name: github pre-release
- name: github release (beta)
id: prerelease
if: github.event_name == 'push'
uses: ahmadnassri/action-semantic-release@v2
Expand All @@ -40,7 +40,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: github full release
- name: github release (versioned)
id: fullrelease
if: github.event_name == 'workflow_dispatch'
uses: ahmadnassri/action-semantic-release@v2
Expand All @@ -49,8 +49,19 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: aws sam release
- name: aws sam release (versioned)
run: make sam-package-all-regions
env:
VERSION: ${{ (steps.prerelease.outputs.release-version != '') && steps.prerelease.outputs.release-version || steps.fullrelease.outputs.release-version }}


- name: aws sam release (beta)
if: github.event_name == 'push'
run: make sam-package-all-regions
env:
VERSION: beta

- name: aws sam release (stable)
if: github.event_name == 'push'
run: make sam-package-all-regions
env:
VERSION: latest

0 comments on commit a7dc8af

Please sign in to comment.