t
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

pull/4/head
dmitry.kirdyashkin 2023-07-22 01:18:37 +03:00
parent 6482506f3f
commit d1a3356a2e
1 changed files with 4 additions and 3 deletions

7
lib
View File

@ -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() {