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