Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/randomairborne/r2-release
Github Action which uploads a single file to CloudFlare R2
https://github.com/randomairborne/r2-release
Last synced: 20 days ago
JSON representation
Github Action which uploads a single file to CloudFlare R2
- Host: GitHub
- URL: https://github.com/randomairborne/r2-release
- Owner: randomairborne
- Created: 2022-08-02T15:41:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-15T04:29:01.000Z (over 1 year ago)
- Last Synced: 2024-10-13T11:48:07.204Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 13.4 MB
- Stars: 13
- Watchers: 0
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# r2-release 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
```yaml
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'
```