Skip to content

Commit 585b9ec

Browse files
committed
Configure Rclone remote
1 parent a87e656 commit 585b9ec

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/ci.yml

+20-3
Original file line numberDiff line numberDiff line change
@@ -418,11 +418,28 @@ jobs:
418418
if: matrix.build_playground
419419
run: yarn workspace playground test
420420

421+
- name: Setup Rclone
422+
# if: ${{ matrix.build_playground && startsWith(github.ref, 'refs/tags/v') }}
423+
uses: cometkim/rclone-actions/setup-rclone@cab9535d853695b38b25c84e069c5d8a261267e4
424+
425+
- name: Configure Rclone remote
426+
# if: ${{ matrix.build_playground && startsWith(github.ref, 'refs/tags/v') }}
427+
uses: cometkim/rclone-actions/configure-remote/s3@cab9535d853695b38b25c84e069c5d8a261267e4
428+
with:
429+
name: rescript
430+
provider: Cloudflare
431+
endpoint: ${{ env.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com
432+
access-key-id: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }}
433+
secret-access-key: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }}
434+
acl: private
435+
436+
- name: Test rclone access
437+
shell: bash
438+
run: |
439+
rclone ls rescript:cdn-assets/
440+
421441
- name: Upload playground compiler to CDN
422442
if: ${{ matrix.build_playground && startsWith(github.ref, 'refs/tags/v') }}
423-
env:
424-
KEYCDN_USER: ${{ secrets.KEYCDN_USER }}
425-
KEYCDN_PASSWORD: ${{ secrets.KEYCDN_PASSWORD }}
426443
run: yarn workspace playground upload-bundle
427444

428445
- name: "Upload artifacts: binaries"

0 commit comments

Comments
 (0)