f
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
aab90e1f17
commit
343698ff34
7
lib
7
lib
|
@ -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' \
|
||||||
|
|
Loading…
Reference in New Issue