diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 33f1982c..45ea1bfd 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 @@ -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 @@ -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 \ No newline at end of file