Skip to content

Commit

Permalink
Enable GH release for RC
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Dec 18, 2024
1 parent c5ee5d3 commit f059a25
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ jobs:
github-release:
name: "GitHub Release"
if: inputs.release-type == 'final'
if: inputs.release-type == 'rc' || inputs.release-type == 'final'
needs:
[
version,
Expand All @@ -347,9 +347,16 @@ jobs:
run: |
version="${{ needs.version.outputs.final }}"
commit="${{ needs.version.outputs.release-commit }}"
if [ ${{ inputs.release-type }} = "final" ]; then
pre_arg=""
else
pre_arg="--prerelease"
fi
git tag $version $commit
git push origin $version
gh release create $version --verify-tag --draft --title $version
gh release create $version --verify-tag --draft --title $version $pre_arg
- name: Create comment
env:
Expand Down

0 comments on commit f059a25

Please sign in to comment.