Skip to content

mc-actions/publish

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Publish folder to S3

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.

Examples

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'

Action inputs

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

About

Publish folder to s3 storage with mc

Resources

License

Stars

Watchers

Forks

Packages

No packages published