Skip to content

Commit 71ce0a6

Browse files
committed
change upload zips as binary
1 parent 13be284 commit 71ce0a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/generate_assets.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ jobs:
128128
# Upload v8
129129
response=$(curl -s -o /dev/null -w "%{http_code}" --fail -X PATCH \
130130
-H "Authorization: Bearer $ACCESS_TOKEN" \
131-
-F "file=@${V8_PATH};type=application/octet-stream" \
131+
-H "Content-Type: application/zip" \
132+
--data-binary @"${V8_PATH}" \
132133
"https://www.googleapis.com/upload/drive/v3/files/${V8_FILE_ID}?uploadType=media")
133134
134135
if [[ "$response" -ne 200 ]]; then
@@ -139,7 +140,8 @@ jobs:
139140
# Upload v7
140141
response=$(curl -s -o /dev/null -w "%{http_code}" --fail -X PATCH \
141142
-H "Authorization: Bearer $ACCESS_TOKEN" \
142-
-F "file=@${V7_PATH};type=application/octet-stream" \
143+
-H "Content-Type: application/zip" \
144+
--data-binary @"${V7_PATH}" \
143145
"https://www.googleapis.com/upload/drive/v3/files/${V7_FILE_ID}?uploadType=media")
144146
145147
if [[ "$response" -ne 200 ]]; then

0 commit comments

Comments
 (0)