|
|
@ -2,7 +2,7 @@
|
|
|
|
set -x
|
|
|
|
set -x
|
|
|
|
|
|
|
|
|
|
|
|
TOKEN=$(< token.txt)
|
|
|
|
TOKEN=$(< token.txt)
|
|
|
|
git commit -a
|
|
|
|
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
|
|
|
@ -26,9 +26,9 @@ OUT=$(curl -X 'POST' \
|
|
|
|
|
|
|
|
|
|
|
|
ID=$(echo $OUT | cut -d',' -f 1 | cut -d':' -f 2)
|
|
|
|
ID=$(echo $OUT | cut -d',' -f 1 | cut -d':' -f 2)
|
|
|
|
|
|
|
|
|
|
|
|
OUT=curl -X 'POST' \
|
|
|
|
OUT=$(curl -X 'POST' \
|
|
|
|
'https://git.deck.sh/api/v1/repos/Interfaz/ff/releases/'$ID'/assets?token='$TOKEN'' \
|
|
|
|
'https://git.deck.sh/api/v1/repos/Interfaz/ff/releases/'$ID'/assets?token='$TOKEN'' \
|
|
|
|
-H 'accept: application/json' \
|
|
|
|
-H 'accept: application/json' \
|
|
|
|
-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')
|
|
|
|
|
|
|
|
|
|
|
|