Skip to content

Commit 763d7f8

Browse files
committed
echo instead of upload
1 parent 9c757a3 commit 763d7f8

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/build.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,11 @@ jobs:
115115
- name: Build serverless function zip
116116
run: |
117117
make ci-build-serverless-function
118-
cp ./cloud_function.zip /tmp/cloud_function.zip
119118
- name: Upload artifact
120119
uses: actions/upload-artifact@v4
121120
with:
122121
name: cloud_function_zip
123-
path: /tmp/cloud_function.zip
122+
path: ./cloud_function.zip
124123
update-cloud-function:
125124
runs-on: ubuntu-latest
126125
env:
@@ -141,12 +140,7 @@ jobs:
141140
- name: Upload function zip
142141
run: |
143142
ARCHIVE_SIZE=$(stat -c %s /tmp/cloud_function.zip)
144-
145-
PRESIGNED_URL=$(curl -X GET -H "X-Auth-Token: $SCW_SECRET_KEY" \
146-
"https://api.scaleway.com/functions/v1beta1/regions/${{ env.SCW_REGION }}/functions/$SCW_FUNCTION_ID/upload-url?content_length=$ARCHIVE_SIZE" | jq ."url")
147-
148-
curl -H "Content-Type: application/octet-stream" --upload-file /tmp/cloud_function.zip \
149-
-H "Content-Length: $ARCHIVE_SIZE" $PRESIGNED_URL
143+
echo $ARCHIVE_SIZE
150144
- name: Deploy function
151145
run: |
152146
curl -X POST \

0 commit comments

Comments
 (0)