Explorar o código

Add protection for accidentally releasing a dev version.

Dan Helfman %!s(int64=4) %!d(string=hai) anos
pai
achega
267138776d
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      scripts/release

+ 6 - 0
scripts/release

@@ -15,6 +15,12 @@ if [[ ! -f NEWS ]]; then
 fi
 
 version=$(head --lines=1 NEWS)
+
+if [[ $version =~ .*dev* ]]; then
+    echo "Refusing to release a dev version: $version"
+    exit 1
+fi
+
 git tag $version
 git push origin $version
 git push github $version