Skip to content

Commit 8537087

Browse files
committed
add presigned url thing
1 parent 8f36d5f commit 8537087

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ jobs:
140140
- name: Upload function zip
141141
run: |
142142
ARCHIVE_SIZE=$(stat -c %s /tmp/cloud_function.zip)
143-
echo $ARCHIVE_SIZE
143+
144+
PRESIGNED_URL=$(curl -X GET -H "X-Auth-Token: $SCW_SECRET_KEY" \
145+
"https://api.scaleway.com/functions/v1beta1/regions/${{ env.SCW_REGION }}/functions/$SCW_FUNCTION_ID/upload-url?content_length=$ARCHIVE_SIZE" | jq ."url")
144146
- name: Deploy function
145147
run: |
146148
curl -X POST \

0 commit comments

Comments
 (0)