Use mc
CLI to upload file or folder to s3 storage. Check out mc-actions/configure
docs to find out how to set up your s3 storage provider.
Upload static
folder of your repo to the root of mybucket
bucket on server https://minio.compny
:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Confugure S3 client
uses: mc-actions/configure@v1
with:
s3_server: 'https://minio.compny'
s3_access_key: '${{ secrets.S3_ACCESS_KEY }}'
s3_secret_key: '${{ secrets.S3_SECRET_KEY }}'
- name: Publish repository
uses: mc-actions/publish@v1
with:
from: './static'
server_bucket: 'mybucket'
The following action inputs are available to configure mc
:
Name | description | Example |
---|---|---|
server_alias |
Any string Optional, default default Name of server to use in CLI. Do not edit if you will use other mc-actions. |
play |
s3_bucket |
Any string Required Name of bucket to store files in |
mybucket |
from |
Any string Required Path to file or folder to upload |
./dist |
to |
Any string Optional, default root of bucket Where to store document in /absolute/path/to/folder format |
/path/to/folder |