Skip to content

Commit 42811ba

Browse files
committed
create prerelease release notes
1 parent a131f23 commit 42811ba

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/publish-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ jobs:
4545
release_notes_file: RELEASE_NOTES.md
4646
prerelease: ${{ contains(github.ref_name, 'rc') }}
4747

48-
- name: Create Release
48+
- name: Create prerelease
49+
if: ${{ contains(github.ref_name, 'rc') }}
50+
run: gh release create "${{ github.ref_name }}" --notes-file RELEASE_NOTES.md --prerelease
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
54+
- name: Create final release
55+
if: ${{ !contains(github.ref_name, 'rc') }}
4956
run: gh release create "${{ github.ref_name }}" --notes-file RELEASE_NOTES.md
5057
env:
5158
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)