Skip to content

Commit b0a3f3b

Browse files
Merge pull request #19 from TheCodeDaniel/fix/ci_issues
update ci build yaml
2 parents 3412bea + 0c6226b commit b0a3f3b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/create_build.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
# echo "✅ macOS build uploaded!"
4646

47-
- name: Upload macOS build to Cloudflare R2
47+
- name: Upload macOS build to Cloudflare R2 (using put-object)
4848
env:
4949
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
5050
R2_BUCKET_NAME: ${{ secrets.R2_BUCKET_NAME }}
@@ -54,15 +54,16 @@ jobs:
5454
aws configure set aws_secret_access_key ${{ secrets.R2_SECRET_ACCESS_KEY }}
5555
aws configure set default.region auto
5656
57-
# Force a single-part upload by setting the multipart threshold very high
58-
export AWS_S3_MULTIPART_THRESHOLD=100GB
59-
60-
aws s3 cp --endpoint-url=https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com \
61-
build/macos/Build/Products/Release/Socket_Probe.zip \
62-
s3://${{ secrets.R2_BUCKET_NAME }}/macos/Socket_Probe.zip --acl public-read
57+
aws s3api put-object \
58+
--bucket "${{ secrets.R2_BUCKET_NAME }}" \
59+
--key "macos/Socket_Probe.zip" \
60+
--body "build/macos/Build/Products/Release/Socket_Probe.zip" \
61+
--acl public-read \
62+
--endpoint-url "https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com"
6363
6464
echo "✅ macOS build uploaded!"
6565
66+
6667
build-windows:
6768
runs-on: windows-latest # ✅ Use Windows runner for Windows builds
6869

0 commit comments

Comments
 (0)