Browse Source

Add protection for accidentally releasing a dev version.

Dan Helfman 4 years ago
parent
commit
267138776d
1 changed files with 6 additions and 0 deletions
  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