Must be in master branch before you can release

This commit is contained in:
Gwilym Kuiper 2021-06-20 23:04:56 +01:00
parent 6c1b2786ec
commit c1917b7d0a

View file

@ -39,6 +39,12 @@ if [ ! -z "$(git status --porcelain)" ]; then
exit 1
fi
# Check that we are in the master branch
if [ "$(git symbolic-ref --short HEAD)" != "master" ]; then
echo "You must be in the master branch before releasing"
exit 1
fi
# Sanity check to make sure the build works
(cd agb && cargo test)
(cd agb-image-converter && cargo test)