We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f36d5f commit 8537087Copy full SHA for 8537087
.github/workflows/build.yml
@@ -140,7 +140,9 @@ jobs:
140
- name: Upload function zip
141
run: |
142
ARCHIVE_SIZE=$(stat -c %s /tmp/cloud_function.zip)
143
- echo $ARCHIVE_SIZE
+
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")
146
- name: Deploy function
147
148
curl -X POST \
0 commit comments