Skip to content

Commit

Permalink
Use aws cli directly
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Aug 16, 2024
1 parent 8cce300 commit 8020cfe
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,15 @@ jobs:
mkdir build-zip
cp ${{ env.OUTNAME }}.zip build-zip
- name: Upload zip to R2
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks
run: >
aws s3 sync build-zip
s3://${{ secrets.CLOUDFLARE_GO_SM_BUILDS_BUCKET }}/${{ github.ref_name }}
--endpoint-url https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com
--acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.CLOUDFLARE_GO_SM_BUILDS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_GO_SM_BUILDS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_GO_SM_BUILDS_SECRET_ACCESS_KEY }}
SOURCE_DIR: build-zip
DEST_DIR: '${{ github.ref_name }}'
AWS_S3_ENDPOINT: https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com
AWS_REGION: us-east-1
- name: Install coreutils
if: ${{ matrix.os == 'macos-13' || matrix.os == '[self-hosted, macOS, ARM64, go-spacemesh]' }}
run: brew install coreutils
Expand Down

0 comments on commit 8020cfe

Please sign in to comment.