Allow alpha/beta tagged releases

This commit is contained in:
Tim St. Clair 2016-09-13 12:06:28 -07:00
parent 2a94462f03
commit 96d7e923ee
No known key found for this signature in database
GPG Key ID: 434D16BCEF479EAB

View File

@ -32,7 +32,7 @@ GO_CMD="install"
if [ "$RELEASE" == "true" ]; then if [ "$RELEASE" == "true" ]; then
# Only allow releases of tagged versions. # Only allow releases of tagged versions.
TAGGED='^v[0-9]+\.[0-9]+\.[0-9]+$' TAGGED='^v[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta)[0-9]*)?$'
if [[ ! "$version" =~ $TAGGED ]]; then if [[ ! "$version" =~ $TAGGED ]]; then
echo "Only tagged versions are allowed for releases" >&2 echo "Only tagged versions are allowed for releases" >&2
echo "Found: $version" >&2 echo "Found: $version" >&2