Skip to content

Commit

Permalink
Update release script to use tags if present
Browse files Browse the repository at this point in the history
  • Loading branch information
LizzyFleckenstein03 committed Mar 29, 2021
1 parent a97351d commit 5801441
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5801441

Please sign in to comment.