Skip to content
Snippets Groups Projects
Verified Commit 51c9245c authored by Joe Donofry's avatar Joe Donofry
Browse files

Fix upload_url json key

parent 701058ef
No related branches found
No related tags found
No related merge requests found
Pipeline #4518 canceled
......@@ -43,15 +43,16 @@ elif [ "$http_code" = "200" ]; then
fi
echo "Getting upload URL..."
upload_url="$(echo "$release_json" | jq '."upload-url"')"
upload_url="$(echo "$release_json" | jq '."upload_url"')"
# get rid of the 'hypermedia' stuff at the end and use a 'real' URL
echo "Upload URL (hypermedia): ${upload_url}"
upload_url="$(echo "$upload_url" | sed 's/{?name,label\}/?name/g')"
ls -la .
echo "Uploading artifacts"
for file in ./artifacts/*; do
name="${file##*/}"
echo "Uploading ${name}"
echo "Uploading $file"
[ -e "$file" ] && curl \
-X POST \
-H "Accept: application/vnd.github+json" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment