make unattended nightly releases even more reliable

This commit is contained in:
Bella 2020-04-29 20:07:22 -04:00
parent a28d7c1179
commit 99b5f43fb5
No known key found for this signature in database
GPG Key ID: DBD4A6030080C8B3
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,10 @@ JAR_DIR="$(ls "$BUILD_DIR" | grep "release")"
CHANGELOG_FULL="$(git log --format=%s $COMMIT_TRIM...$COMMIT_LAST | sed ':a;N;$!ba;s/\n/\\n- /g')"
# delete the release in case it exists
git tag -d $CUR_VER-$COMMIT_TRIM
git push origin :refs/tags/$CUR_VER-$COMMIT_TRIM
# Upload the release
cd ~/
source ~/.profile