Commit a2fe6bbf authored by Vivien Kraus's avatar Vivien Kraus


parent 68d098e2
Pipeline #109478 passed with stages
in 7 minutes and 16 seconds
......@@ -115,13 +115,13 @@ then
--form \
"file=@$TARFILE" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/uploads")
URL=$(echo "UPLOAD_STATUS" | jq -r '.url')
URL=$(echo "$UPLOAD_STATUS" | jq -r '.url')
echo "Upload $TARFILE to $CI_API_V4_URL/projects/$CI_PROJECT_ID/uploads: $UPLOAD_STATUS"
NAME="Tarot release"
DESCRIPTION=$(git tag -l --format='%(contents)' "$CI_COMMIT_TAG")
DESCRIPTION=$(printf "%q" $(git tag -l --format='%(contents)' "$CI_COMMIT_TAG"))
LINK="{\"name\": \"$TARFILE\", \"url\": \"$URL\"}"
ASSETS="{\"links\": [$LINK]}"
DATA="{\"name\": \"$NAME\", \"tag_name\": \"$TAG_NAME\", \"description\": \"$DESCRIPTION\", \"assets\": $ASSETS}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment