1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Fix upload from CI on windows

This commit is contained in:
Kirill Chibisov 2023-05-16 08:35:02 +03:00
parent 9fbc5b618b
commit bc60ab13a2

View file

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