Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ricardoapaes/action-s3-upload
Upload files to S3 with tags.
https://github.com/ricardoapaes/action-s3-upload
aws-s3
Last synced: 25 days ago
JSON representation
Upload files to S3 with tags.
- Host: GitHub
- URL: https://github.com/ricardoapaes/action-s3-upload
- Owner: ricardoapaes
- License: gpl-3.0
- Created: 2022-08-04T20:45:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T22:13:12.000Z (4 months ago)
- Last Synced: 2024-11-08T10:53:59.396Z (3 months ago)
- Topics: aws-s3
- Language: PHP
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Upload/Download file to Amazon S3 - GitHub Action
This GitHub Action upload/downloa a file to amazon s3 with the option to add metadata.
## Upload
```yaml
- name: Upload to s3
uses: ricardoapaes/action-s3-upload@latest
env:
AWS_KEY: ${{ secrets.AWS_KEY }}
AWS_SECRET: ${{ secrets.AWS_SECRET }}
with:
bucket: name-of-bucket
src: filename-to-upload.zip
filename: filename-in-bucket.zip
metadata: var1=example1,var2=example2
region: us-east-1
```## Download
```yaml
- name: Download from s3
uses: ricardoapaes/action-s3-upload/download@latest
env:
AWS_KEY: ${{ secrets.AWS_KEY }}
AWS_SECRET: ${{ secrets.AWS_SECRET }}
with:
bucket: name-of-bucket
src: file-to-upload.zip
dest: path-in-bucket.zip
region: us-east-1
```