Skip to content

Commit 9fae307

Browse files
bobbypagePaweł Szulik
authored andcommitted
Support git tag with rc when doing releases
1 parent 80e6574 commit 9fae307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -e
1818

1919
VERSION=$( git describe --tags --dirty --abbrev=14 | sed -E 's/-([0-9]+)-g/.\1+/' )
2020
# Only allow releases of tagged versions.
21-
TAGGED='^v[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta)[0-9]*)?$'
21+
TAGGED='^v[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta|rc)\.?[0-9]*)?$'
2222
if [[ ! "$VERSION" =~ $TAGGED ]]; then
2323
echo "Error: Only tagged versions are allowed for releases" >&2
2424
echo "Found: $VERSION" >&2

0 commit comments

Comments
 (0)