1.0.18 • Published 6 months ago

cloudflare_r2_upload_action v1.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

cloudflare-r2-upload action script

1. Description

  • This action uploads a file to Cloudflare R2 (or any other S3 Compatibility API)

1.1. Example usage

uses: george012/cloudflare-r2-upload@latest
with:
  endpoint: ${{ secrets.S3_COMPATIBILITY_ENDPOINT }}
  accesskeyid: ${{ secrets.S3_COMPATIBILITY_ACCESS_KEY_ID }}
  secretaccesskey: ${{ secrets.S3_COMPATIBILITY_SECRET_ACCESS_KEY }}
  bucket: 'bucket_name'
  file: './custom_path/pre_upload_file_pre.zip'
  destination: '/public_path/upload_over_file_name.zip'

1.2. Inputs

1.2.1. endpoint

  • Required The S3 endpoint URL.

1.2.2. accesskeyid

  • Required The S3 access key ID.

1.2.3. secretaccesskey

  • Required The S3 access key.

1.2.4. bucket

  • Required The S3 bucket you want to upload to.

1.2.5. file

  • Required Which file you want to upload

1.2.6. destination

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