Unique release tag

formac
Cole Deck 2 years ago
parent f3822c32f2
commit b12902183d

@ -7,15 +7,15 @@ EDITOR=nano git commit -a
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"
DATE=$(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='{
"body": "Autogenerated release", "body": "Autogenerated release",
"draft": true, "draft": false,
"name": "Development release", "name": "Development release",
"prerelease": true, "prerelease": true,
"tag_name": "testing", "tag_name": "'$DATE'",
"target_commitish": "'$COMMIT'" "target_commitish": "'$COMMIT'"
}' }'
OUT=$(curl -X 'POST' \ OUT=$(curl -X 'POST' \
@ -34,16 +34,4 @@ OUT=$(curl -X 'POST' \
URL=$(echo $OUT | cut -d',' -f 6 | cut -d\" -f4) URL=$(echo $OUT | cut -d',' -f 6 | cut -d\" -f4)
echo $URL echo $URL
DATA='{ rm release-$COMMIT.zip
"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")
Loading…
Cancel
Save