Skip to content

Commit 6269760

Browse files
committed
Configure Rclone remote
1 parent ac36283 commit 6269760

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,28 @@ jobs:
396396
if: matrix.build_playground
397397
run: yarn workspace playground test
398398

399+
- name: Setup Rclone
400+
# if: ${{ matrix.build_playground && startsWith(github.ref, 'refs/tags/v') }}
401+
uses: cometkim/rclone-actions/setup-rclone@cab9535d853695b38b25c84e069c5d8a261267e4
402+
403+
- name: Configure Rclone remote
404+
# if: ${{ matrix.build_playground && startsWith(github.ref, 'refs/tags/v') }}
405+
uses: cometkim/rclone-actions/configure-remote/s3@cab9535d853695b38b25c84e069c5d8a261267e4
406+
with:
407+
name: rescript
408+
provider: Cloudflare
409+
endpoint: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com
410+
access-key-id: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }}
411+
secret-access-key: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }}
412+
acl: private
413+
414+
- name: Test rclone access
415+
shell: bash
416+
run: |
417+
rclone ls rescript:cdn-assets/
418+
399419
- name: Upload playground compiler to CDN
400420
if: ${{ matrix.build_playground && startsWith(github.ref, 'refs/tags/v') }}
401-
env:
402-
KEYCDN_USER: ${{ secrets.KEYCDN_USER }}
403-
KEYCDN_PASSWORD: ${{ secrets.KEYCDN_PASSWORD }}
404421
run: yarn workspace playground upload-bundle
405422

406423
- name: "Upload artifacts: binaries"

0 commit comments

Comments
 (0)