Browse Source

Add protection for accidentally releasing a dev version.

pull/407/head
Dan Helfman 8 months ago
parent
commit
267138776d
  1. 6
      scripts/release

6
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

Loading…
Cancel
Save