t
parent
6482506f3f
commit
d1a3356a2e
7
lib
7
lib
|
@ -25,7 +25,9 @@ function create-release(){
|
||||||
"prerelease": false,
|
"prerelease": false,
|
||||||
"tag_name": "'"$1"'"
|
"tag_name": "'"$1"'"
|
||||||
}')
|
}')
|
||||||
|
}
|
||||||
|
|
||||||
|
function upload-attachments(){
|
||||||
RELEASE_ID=$(jq -r '.id' <<< $RESPONSE)
|
RELEASE_ID=$(jq -r '.id' <<< $RESPONSE)
|
||||||
echo "RELEASE_ID is ${RELEASE_ID}"
|
echo "RELEASE_ID is ${RELEASE_ID}"
|
||||||
curl \
|
curl \
|
||||||
|
@ -35,8 +37,7 @@ function create-release(){
|
||||||
-H 'accept: application/json' \
|
-H 'accept: application/json' \
|
||||||
-H 'Content-Type: multipart/form-data' \
|
-H 'Content-Type: multipart/form-data' \
|
||||||
-H 'Authorization: Bearer 10e4af53e553aacb905766512e36487492d61a66' \
|
-H 'Authorization: Bearer 10e4af53e553aacb905766512e36487492d61a66' \
|
||||||
-F 'file1=@./release/module.zip' \
|
-F "attachment=@$1"
|
||||||
-F 'file2=@./module.json'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function vars() {
|
function vars() {
|
||||||
|
|
Loading…
Reference in New Issue