feat: cleaunp script

This commit is contained in:
natct 2024-10-29 17:44:34 +01:00
parent c3c6700f17
commit 72f5daf6a7

View file

@ -43,9 +43,12 @@ ensure_tag() {
upload_release() { upload_release() {
local assets=$(ls $RELEASE_DIR/* | sed -e 's/^/-a /') local assets=$(ls $RELEASE_DIR/* | sed -e 's/^/-a /')
local releasetype if $PRERELEASE || echo "${TAG}" | grep -qi '\-rc' ; then
( $PRERELEASE || echo "${TAG}" | grep -qi '\-rc' ) && export releasetype="--prerelease" && echo "Uploading as Pre-Release" releasetype="--prerelease"
test ${releasetype+false} || echo "Uploading as Stable" echo "Uploading as Pre-Release"
else
echo "Uploading as Stable"
fi
ensure_tag ensure_tag
anchor=$(echo $TAG | sed -e 's/^v//' -e 's/[^a-zA-Z0-9]/-/g') anchor=$(echo $TAG | sed -e 's/^v//' -e 's/[^a-zA-Z0-9]/-/g')
if ! $BIN_DIR/tea release create $assets --repo $REPO --note "$RELEASENOTES" --tag $TAG --title "$TITLE" --draft ${releasetype} >& $TMP_DIR/tea.log ; then if ! $BIN_DIR/tea release create $assets --repo $REPO --note "$RELEASENOTES" --tag $TAG --title "$TITLE" --draft ${releasetype} >& $TMP_DIR/tea.log ; then