Update release script to use tags if present

master
Elias Fleckenstein 2021-03-29 15:45:30 +02:00
parent a97351d60f
commit 5801441902
1 changed files with 5 additions and 1 deletions

View File

@ -8,5 +8,9 @@ cd ..
rm -rf .git* deps src BUILDING.md release.sh DragonblocksAlpha-*.zip
cd ..
mv .build DragonblocksAlpha
zip -r DragonblocksAlpha-`git rev-parse --short HEAD` DragonblocksAlpha/*
RELEASE=`git tag --points-at HEAD`
if [[ $RELEASE = "" ]]; then
RELEASE=`git rev-parse --short HEAD`
fi
zip -r DragonblocksAlpha-$RELEASE DragonblocksAlpha/*
rm -rf DragonblocksAlpha