Skip to content

Commit 9179e41

Browse files
committed
add other curl
1 parent 8537087 commit 9179e41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

+6
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ jobs:
143143
144144
PRESIGNED_URL=$(curl -X GET -H "X-Auth-Token: $SCW_SECRET_KEY" \
145145
"https://api.scaleway.com/functions/v1beta1/regions/${{ env.SCW_REGION }}/functions/$SCW_FUNCTION_ID/upload-url?content_length=$ARCHIVE_SIZE" | jq ."url")
146+
echo $PRESIGNED_URL | head -c 10
147+
148+
curl -H "Content-Type: application/octet-stream" \
149+
--upload-file /tmp/cloud_function.zip \
150+
-H "Content-Length: $ARCHIVE_SIZE" \
151+
$PRESIGNED_URL
146152
- name: Deploy function
147153
run: |
148154
curl -X POST \

0 commit comments

Comments
 (0)