Github action to upload static directory of files to Cloudflare R2
Required The R2 Account ID.
Required The R2 Access Key ID.
Required The R2 Secret Key.
Required The R2 bucket name.
Required The directory you want to upload.
Optional Destination path of the directory. Defaults to the root of the bucket.
- name: R2 Directory Upload
uses: willfurstenau/r2-dir-upload@main
with:
accountid: ${{ secrets.CF_ACCOUNT_ID }}
accesskeyid: ${{ secrets.CF_ACCESS_KEY }}
secretaccesskey: ${{ secrets.CF_SECRET_KEY }}
bucket: ${{ secrets.R2_BUCKET }}
source: ${{ github.workspace }}/static
destination: /