diff options
author | Joseph Donofry <rubberduckie3554@gmail.com> | 2023-02-28 12:53:27 -0500 |
---|---|---|
committer | Joseph Donofry <rubberduckie3554@gmail.com> | 2023-02-28 12:53:27 -0500 |
commit | 51c9245c6a283e0ee3a091888dd647d1c929de78 (patch) | |
tree | 73a50aac30d109ddf459661f75e2297b192d6e5d | |
parent | Release notes are already quoted (diff) | |
download | nheko-51c9245c6a283e0ee3a091888dd647d1c929de78.tar.xz |
Fix upload_url json key
-rwxr-xr-x | .ci/update-github-release.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.ci/update-github-release.sh b/.ci/update-github-release.sh index d51b4dd9..ac643987 100755 --- a/.ci/update-github-release.sh +++ b/.ci/update-github-release.sh @@ -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" \ |