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:
parent
9fbc5b618b
commit
bc60ab13a2
1 changed files with 3 additions and 0 deletions
3
.github/workflows/upload_asset.sh
vendored
3
.github/workflows/upload_asset.sh
vendored
|
@ -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" \
|
||||||
|
|
Loading…
Reference in a new issue