Add protection for accidentally releasing a dev version.
This commit is contained in:
parent
604b3d5e17
commit
267138776d
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue