Browse Source

Add protection for accidentally releasing a dev version.

master
Dan Helfman 1 week ago
parent
commit
267138776d
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      scripts/release

+ 6
- 0
scripts/release View File

@@ -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


Loading…
Cancel
Save