Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
message-square

GitHub Action

S3 Upload

0.1.0

S3 Upload

message-square

S3 Upload

Upload files and directories to S3 compatible cloud buckets

Installation

Copy and paste the following snippet into your .yml file.

              

- name: S3 Upload

uses: koraykoska/[email protected]

Learn more about this action in koraykoska/s3-upload-github-action

Choose a version

s3-upload-github-action

S3 uploader for Github Actions.

You can upload files or directories to any S3 compatible cloud buckets.

Usage

See the following example.

# inside .github/workflows/action.yml
name: Add File to Bucket
on: push

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@master

      - name: Upload file to bucket
        uses: zdurham/s3-upload-github-action@master
        env:
          FILE: ./releases/
          S3_ENDPOINT: 'ams3.digitaloceanspaces.com'
          S3_BUCKET: ${{ secrets.S3_BUCKET }}
          S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
          S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}