figure out how tags work

formac
Cole Deck 2 years ago
parent 0a55b3ae8c
commit 302dcd5529

@ -8,7 +8,7 @@ git push
COMMIT=$(git log | head -n 1 | cut -d' ' -f2) COMMIT=$(git log | head -n 1 | cut -d' ' -f2)
echo $COMMIT echo $COMMIT
export PATH=$PATH:"C:\Program Files\7-Zip" export PATH=$PATH:"C:\Program Files\7-Zip"
TAG="testing" TAG=$(date +%s)
7z a -r release-$COMMIT.zip ./build/exe.win-amd64-3.10/* 7z a -r release-$COMMIT.zip ./build/exe.win-amd64-3.10/*
DATA='{ DATA='{
@ -17,7 +17,7 @@ DATA='{
"name": "Development release", "name": "Development release",
"prerelease": true, "prerelease": true,
"tag_name": "'$TAG'", "tag_name": "'$TAG'",
"target_commitish": "'$COMMIT'" "target_commitish": "testing"
}' }'
OUT=$(curl -X 'POST' \ OUT=$(curl -X 'POST' \
'https://git.deck.sh/api/v1/repos/Interfaz/ff/releases?token='$TOKEN'' \ 'https://git.deck.sh/api/v1/repos/Interfaz/ff/releases?token='$TOKEN'' \
@ -33,6 +33,6 @@ OUT=$(curl -X 'POST' \
-H 'Content-Type: multipart/form-data' \ -H 'Content-Type: multipart/form-data' \
-F 'attachment=@'release-$COMMIT.zip';type=application/x-zip-compressed') -F 'attachment=@'release-$COMMIT.zip';type=application/x-zip-compressed')
URL=$(echo $OUT | cut -d',' -f 7# | cut -d\" -f4) URL=$(echo $OUT | cut -d',' -f 7 | cut -d\" -f4)
echo $URL echo $URL
rm release-$COMMIT.zip rm release-$COMMIT.zip
Loading…
Cancel
Save