|
|
@ -32,3 +32,18 @@ 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 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")
|