Skip to content

Commit

Permalink
ci: include pre-release label for RCs
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Nguyen <[email protected]>
  • Loading branch information
mikeee committed Jan 16, 2025
1 parent aded0b6 commit 2f026a2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/release-on-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ jobs:
run: |
echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
- name: Release
- name: Release Main
uses: actions/create-release@v1
if: !contains(github.ref , 'rc')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -49,6 +50,18 @@ jobs:
draft: false
prerelease: false

- name: Release RC
uses: actions/create-release@v1
if: contains(github.ref, 'rc')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: Automatic Go Dapr client release
draft: false
prerelease: true

- name: Notify
uses: rjstone/discord-webhook-notify@v1
with:
Expand Down

0 comments on commit 2f026a2

Please sign in to comment.