From 0a55b3ae8c43ff2619bb75450367a8f36bde63b1 Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Mon, 10 Oct 2022 22:05:45 -0500 Subject: [PATCH] Fix branch tag for release --- release.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/release.sh b/release.sh index d2b6510..681bda8 100644 --- a/release.sh +++ b/release.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -x +#set -x TOKEN=$(< token.txt) EDITOR=nano git commit -a @@ -8,7 +8,7 @@ git push COMMIT=$(git log | head -n 1 | cut -d' ' -f2) echo $COMMIT export PATH=$PATH:"C:\Program Files\7-Zip" -DATE=$(date +%s) +TAG="testing" 7z a -r release-$COMMIT.zip ./build/exe.win-amd64-3.10/* DATA='{ @@ -16,7 +16,7 @@ DATA='{ "draft": false, "name": "Development release", "prerelease": true, - "tag_name": "'$DATE'", + "tag_name": "'$TAG'", "target_commitish": "'$COMMIT'" }' OUT=$(curl -X 'POST' \ @@ -33,6 +33,6 @@ OUT=$(curl -X 'POST' \ -H 'Content-Type: multipart/form-data' \ -F 'attachment=@'release-$COMMIT.zip';type=application/x-zip-compressed') -URL=$(echo $OUT | cut -d',' -f 6 | cut -d\" -f4) +URL=$(echo $OUT | cut -d',' -f 7# | cut -d\" -f4) echo $URL rm release-$COMMIT.zip \ No newline at end of file