From d1a3356a2e0735592c1f612da7f7fb461d56c0fd Mon Sep 17 00:00:00 2001 From: "dmitry.kirdyashkin" Date: Sat, 22 Jul 2023 01:18:37 +0300 Subject: [PATCH] t --- lib | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib b/lib index 87d5b9f..64fae75 100644 --- a/lib +++ b/lib @@ -25,7 +25,9 @@ function create-release(){ "prerelease": false, "tag_name": "'"$1"'" }') - +} + +function upload-attachments(){ RELEASE_ID=$(jq -r '.id' <<< $RESPONSE) echo "RELEASE_ID is ${RELEASE_ID}" curl \ @@ -35,8 +37,7 @@ function create-release(){ -H 'accept: application/json' \ -H 'Content-Type: multipart/form-data' \ -H 'Authorization: Bearer 10e4af53e553aacb905766512e36487492d61a66' \ - -F 'file1=@./release/module.zip' \ - -F 'file2=@./module.json' + -F "attachment=@$1" } function vars() {