adjust release script

This commit is contained in:
Carson McManus 2023-06-29 17:51:10 -04:00
parent 06ea485e55
commit 3cb0869597

View file

@ -92,6 +92,10 @@ if [[ "v$RAW_VERSION" != "v$TAGGED_VERSION" ]]; then
fi fi
VERSION="v$RAW_VERSION" VERSION="v$RAW_VERSION"
if [[ $DRY_RUN == false ]]; then
git push
fi
if [[ $DRY_RUN == false ]]; then if [[ $DRY_RUN == false ]]; then
if [[ $(gh release list | grep -i "Draft" | grep -i "$VERSION" && echo "true" || echo "false") == "true" ]]; then if [[ $(gh release list | grep -i "Draft" | grep -i "$VERSION" && echo "true" || echo "false") == "true" ]]; then
gh release delete --yes "$VERSION" gh release delete --yes "$VERSION"