Skip to content

Github Action to upload files to CloudFlare R2

Notifications You must be signed in to change notification settings

gemwalletcom/r2-upload

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

r2-upload action

This action uploads a file to Cloudflare R2

Inputs

endpoint

Required The R2 endpoint URL. Example: https://<accountid>.r2.cloudflarestorage.com

access_key_id

Required The R2 Access Key ID.

secret_access_key

Required The R2 Access Key.

bucket

Required The R2 bucket you want to upload to.

file

Required Which file you want to upload

destination

Optional Where you want the file to end up. Defaults to '/(filename)'.

Example usage

- 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'

About

Github Action to upload files to CloudFlare R2

Resources

Stars

Watchers

Forks

Languages

  • JavaScript 100.0%