Skip to content

Commit 3776ee7

Browse files
committed
Handle tagged prereleases separately from releases and other prereleases
1 parent 1276f7f commit 3776ee7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/prerelease_suffix.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ prerelease_source="${1:-nightly}"
66
git_tag="${2:-}"
77
FORCE_RELEASE="${FORCE_RELEASE:-}"
88

9-
if [[ $FORCE_RELEASE != "" || $git_tag == v* ]]; then
9+
if [[ $FORCE_RELEASE != "" || $git_tag =~ ^v[0-9.]+$ ]]; then
1010
echo -n
11+
elif [[ $git_tag =~ ^v[0-9.]+-pre. ]]; then
12+
echo -n "pre.${git_tag#*-pre.}"
1113
else
1214
# Use last commit date rather than build date to avoid ending up with builds for
1315
# different platforms having different version strings (and therefore producing different bytecode)

0 commit comments

Comments
 (0)