You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
R2 Upload
v0.0.6
This action uploads a file to Cloudflare R2
Required The R2 endpoint URL. Example: https://<accountid>.r2.cloudflarestorage.com
Required The R2 Access Key ID.
Required The R2 Access Key.
Required The R2 bucket you want to upload to.
Required Which file you want to upload
Optional Where you want the file to end up. Defaults to '/(filename)'.
- name: Upload file to R2
uses: magicwallet/r2-upload@main
with:
endpoint: ${{ secrets.R2_ENDPOINT }}
access_key_id: ${{ secrets.R2_ACCESS_KEY_ID }}
secret_access_key: ${{ secrets.R2_ACCESS_SECRET_KEY }}
bucket: ${{ secrets.R2_BUCKET }}
file: ./index.html
destination: '/public'