Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 946 Bytes

README.md

File metadata and controls

40 lines (32 loc) · 946 Bytes

.github/workflows/test.yml

GitHub Action: Run s3cmd With Arguments

This action simply runs s3cmd with all of the arguments supplied by you. See the s3cmd 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/