Skip to content

Commit

Permalink
feat(ci): manual r2 clean-up script
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Apr 8, 2024
1 parent a20a2f7 commit aad7f34
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/clean_up_r2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Clean-up

on:
workflow_dispatch:

env:
NODE_VERSION: 20.x

jobs:
r2:
runs-on: ubuntu-latest
name: R2 storage

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Rclone
uses: AnimMouse/setup-rclone@v1
with:
rclone_config: ${{ secrets.RCLONE_CONFIG }}

- name: Sync audio files from repo to Cloudflare R2
run: |
rclone --fast-list -v --transfers=128 --checkers=256 --progress sync "./audio" "Cloudflare R2:/rail-announcements-audio"
env:
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASSWORD }}

0 comments on commit aad7f34

Please sign in to comment.