https://github.com/mltframework/s3cmd-action
https://github.com/mltframework/s3cmd-action
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mltframework/s3cmd-action
- Owner: mltframework
- License: mit
- Created: 2020-10-12T05:12:17.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-12T07:08:37.000Z (over 5 years ago)
- Last Synced: 2024-12-30T06:15:14.502Z (about 1 year ago)
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 4
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# GitHub Action: Run `s3cmd` With Arguments
This action simply runs [s3cmd](https://s3tools.org/) with all of the arguments supplied by you. See the s3cmd [usage](https://s3tools.org/usage)
for more information about the arguments.
## Example
### Upload One File
Use `>-` to pass a multi-line string.
```
uses: mltframework/s3cmd-action@v0
with:
args: >-
--access_key=${{ secrets.AWS_ACCESS_KEY }}
--secret_key=${{ secrets.AWS_SECRET_KEY }}
--acl-public
--stop-on-error
put
local-file
s3://bucket/prefix/
```
### Upload Multiple Files By Wildcard
```
uses: mltframework/s3cmd-action@v0
with:
args: >-
--access_key=${{ secrets.AWS_ACCESS_KEY }}
--secret_key=${{ secrets.AWS_SECRET_KEY }}
--acl-public
--stop-on-error
put
/tmp/*.zip
s3://bucket/prefix/
```