cloudflare-r2-upload action script
- This action uploads a file to Cloudflare R2 (or any other S3 Compatibility API)
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'
- Required The S3 endpoint URL.
- Required The S3 access key ID.
- Required The S3 access key.
- Required The S3 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)'.