Skip to content

Upload S3 Bucket

Actions
GitHub action to upload files to Amazon S3
v1.0.0
Latest
Star (1)

Upload S3

GitHub action to upload files to Amazon S3.

Usage

See action.yml

Inputs

  • aws_access_key_id: (Required) The AWS access key ID.
  • aws_secret_access_key: (Required) The AWS secret access key.
  • aws_region: (Required) The region to send service requests to.
  • aws_bucket: (Required) The bucket name to which the PUT action was initiated.
  • source: The local directory (or file) you wish to upload to S3. Default is current directory.
  • target: The directory (or file path) on the bucket to upload files. Default is root directory.
  • acl: The canned ACL to apply to the objects. Options: private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, bucket-owner-full-control, string. Default: private.
  • expires: The date and time at which the object is no longer cacheable.
  • delete: Delete files not present at local. Default: false.

Example

steps:
  - uses: joutvhu/upload-s3@v1
    with:
      aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
      aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
      aws_region: us-east-1
      aws_bucket: ${{ secrets.AWS_BUCKET }}
      source: './dist'
      target: ''
      acl: public-read
      delete: true

Upload S3 Bucket is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

GitHub action to upload files to Amazon S3
v1.0.0
Latest

Upload S3 Bucket is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.