Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/create_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

# echo "✅ macOS build uploaded!"

- name: Upload macOS build to Cloudflare R2
- name: Upload macOS build to Cloudflare R2 (using put-object)
env:
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
R2_BUCKET_NAME: ${{ secrets.R2_BUCKET_NAME }}
Expand All @@ -54,15 +54,16 @@ jobs:
aws configure set aws_secret_access_key ${{ secrets.R2_SECRET_ACCESS_KEY }}
aws configure set default.region auto

# Force a single-part upload by setting the multipart threshold very high
export AWS_S3_MULTIPART_THRESHOLD=100GB

aws s3 cp --endpoint-url=https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com \
build/macos/Build/Products/Release/Socket_Probe.zip \
s3://${{ secrets.R2_BUCKET_NAME }}/macos/Socket_Probe.zip --acl public-read
aws s3api put-object \
--bucket "${{ secrets.R2_BUCKET_NAME }}" \
--key "macos/Socket_Probe.zip" \
--body "build/macos/Build/Products/Release/Socket_Probe.zip" \
--acl public-read \
--endpoint-url "https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com"

echo "✅ macOS build uploaded!"


build-windows:
runs-on: windows-latest # ✅ Use Windows runner for Windows builds

Expand Down