From b12902183dbd32dc8eaf0f82093f06a48f700b13 Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Mon, 10 Oct 2022 22:01:36 -0500 Subject: [PATCH] Unique release tag --- release.sh | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/release.sh b/release.sh index 3f625d6..e9a344e 100644 --- a/release.sh +++ b/release.sh @@ -7,15 +7,15 @@ EDITOR=nano git commit -a COMMIT=$(git log | head -n 1 | cut -d' ' -f2) echo $COMMIT export PATH=$PATH:"C:\Program Files\7-Zip" - +DATE=$(date +%s) 7z a -r release-$COMMIT.zip ./build/exe.win-amd64-3.10/* DATA='{ "body": "Autogenerated release", - "draft": true, + "draft": false, "name": "Development release", "prerelease": true, - "tag_name": "testing", + "tag_name": "'$DATE'", "target_commitish": "'$COMMIT'" }' OUT=$(curl -X 'POST' \ @@ -34,16 +34,4 @@ OUT=$(curl -X 'POST' \ URL=$(echo $OUT | cut -d',' -f 6 | cut -d\" -f4) echo $URL -DATA='{ - "body": "Autogenerated release", - "draft": false, - "name": "Development release", - "prerelease": true, - "tag_name": "testing", - "target_commitish": "'$COMMIT'" -}' -OUT=$(curl -X 'POST' \ - 'https://git.deck.sh/api/v1/repos/Interfaz/ff/releases/'$ID'?token='$TOKEN'' \ - -H 'accept: application/json' \ - -H 'Content-Type: application/json' \ - -d "$DATA") \ No newline at end of file +rm release-$COMMIT.zip \ No newline at end of file