Fix upload from CI on windows

This commit is contained in:
Kirill Chibisov 2023-05-16 08:35:02 +03:00 committed by GitHub
parent 0b32cfbb59
commit a6488a3e5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@ echo "Git tag: $tag"
echo "Checking for existing release..."
upload_url=$(\
curl \
--http1.1 \
-H "Authorization: Bearer $bearer" \
"https://api.github.com/repos/$repo/releases" \
2> /dev/null \
@ -48,6 +49,7 @@ if [ -z "$upload_url" ]; then
# Create new release.
response=$(
curl -f \
--http1.1 \
-X POST \
-H "Authorization: Bearer $bearer" \
-d "{\"tag_name\":\"$tag\",\"draft\":true}" \
@ -79,6 +81,7 @@ fi
file_name=${file_path##*/}
echo "Uploading asset $file_name to $upload_url..."
curl -f \
--http1.1 \
-X POST \
-H "Authorization: Bearer $bearer" \
-H "Content-Type: application/octet-stream" \