You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Use S3cmd
v0.2
Pre-release
This action is a simple wrapper for S3cmd.
It is currently only tested with linode. It works with all environments though, it just a matter of setting the right flags.
Not required The cluster the buckets reside in. Default "ap-south-1"
.
Required The buckets access key.
Required The buckets secret key.
on:
push:
branches:
- main
jobs:
use_s3cmd:
runs-on: ubuntu-latest
name: Use S3cmd
steps:
- name: Set up S3cmd cli tool
uses: s3-actions/s3cmd@v0.1
with:
cluster: 'eu-central-1'
access_key: ${{ secrets.S3_ACCESS_KEY }}
secret_key: ${{ secrets.S3_SECRET_KEY }}
- name: Interact with object storage
run: |
echo 'foo' >> bar
s3cmd put bar s3://foobarbaz