aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2023-05-16 08:35:02 +0300
committerGitHub <noreply@github.com>2023-05-16 08:35:02 +0300
commita6488a3e5edf1ac25c522e037c75b9d17e6bc3c6 (patch)
tree19b71d3d6370ca8e5a8c2106be97c70ad5385a50 /.github
parent0b32cfbb5936ab552a7cde3c8b4b57b07bfcaa23 (diff)
downloadalacritty-a6488a3e5edf1ac25c522e037c75b9d17e6bc3c6.tar.gz
alacritty-a6488a3e5edf1ac25c522e037c75b9d17e6bc3c6.zip
Fix upload from CI on windows
Diffstat (limited to '.github')
-rwxr-xr-x.github/workflows/upload_asset.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/upload_asset.sh b/.github/workflows/upload_asset.sh
index 55845ae9..9e1f40e5 100755
--- a/.github/workflows/upload_asset.sh
+++ b/.github/workflows/upload_asset.sh
@@ -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" \