Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
archive

GitHub Action

R2 Upload

v0.0.3 Pre-release

R2 Upload

archive

R2 Upload

Upload a file to CloudFlare R2 bucket

Installation

Copy and paste the following snippet into your .yml file.

              

- name: R2 Upload

uses: gemwalletcom/r2-upload@v0.0.3

Learn more about this action in gemwalletcom/r2-upload

Choose a version

r2-upload action

This action uploads a file to Cloudflare R2 (or any other S3 provider)

Inputs

endpoint

Required The S3 endpoint URL.

accesskeyid

Required The S3 access key ID.

secretaccesskey

Required The S3 access key.

bucket

DEAR GOD
Required The S3 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

uses: randomairborne/r2-release@main
with:
  endpoint: ${{ secrets.S3_ENDPOINT }}
  accesskeyid: ${{ secrets.S3_ACCESS_KEY_ID }}
  secretaccesskey: ${{ secrets.S3_SECRET_ACCESS_KEY }}
  bucket: 'my-s3-bucket'
  file: './target/release/my-app.exe'
  destination: '/download/my-app.exe'