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

pull/4/head
dmitry.kirdyashkin 2023-07-21 23:28:21 +03:00
parent aab90e1f17
commit 343698ff34
1 changed files with 2 additions and 5 deletions

7
lib
View File

@ -8,11 +8,9 @@ function create-archive(){
} }
function create-release(){ function create-release(){
RED= '\033[0;31m'
if [[-z "${TAG}"]]; then if [[-z "${TAG}"]]; then
echo "${RED}TAG key is not set" echo "TAG key is not set"
break exit 0
fi fi
RESPONSE=$(curl \ RESPONSE=$(curl \
@ -32,7 +30,6 @@ function create-release(){
curl \ curl \
-X 'POST' \ -X 'POST' \
-vv \
-Url "https://gitea.kdiva.ru/api/v1/repos/${DRONE_REPO}/releases/$RELEASE_ID/assets" \ -Url "https://gitea.kdiva.ru/api/v1/repos/${DRONE_REPO}/releases/$RELEASE_ID/assets" \
-H 'accept: application/json' \ -H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \ -H 'Content-Type: multipart/form-data' \