Skip to content

Commit 3c6b2a5

Browse files
committed
release: mark prereleases on GitHub
1 parent 2113227 commit 3c6b2a5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/github-release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,16 @@ jobs:
3232
exit 0
3333
fi
3434
35+
prerelease_flag=""
36+
case "$VERSION" in
37+
*-alpha*|*-beta*|*-rc*)
38+
prerelease_flag="--prerelease"
39+
;;
40+
esac
41+
3542
gh release create "$tag" \
3643
--repo "$GITHUB_REPOSITORY" \
3744
--target "$TARGET_SHA" \
3845
--title "TKO ${VERSION}" \
39-
--generate-notes
46+
--generate-notes \
47+
$prerelease_flag

0 commit comments

Comments
 (0)