Giter Site home page Giter Site logo

s3-sync-js-action's Introduction

Github Action to sync files with S3

Upload new and modified files. Delete deleted files. Written in JavaScript for faster job setup compared to docker image.

Usage

name: CI

on:
  push:
    branches:
      - master

jobs:
  build-deploy:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v1
      - name: Deploy
        uses: domolicious/s3-sync-js-action@master
        with:
          region: "us-east-1"
          bucket: ${{ secrets.AWS_S3_BUCKET }}
          source: "public"
          concurrent_uploads: 5
          acl: "public-read" # defaults to private
          delete: true # defaults to false
        env:
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

Configuration

Name Description Type Default Required
region AWS region with us-east-1 no
bucket AWS bucket with yes
source Local directory for sync with public no
concurrent_uploads Number of concurrent uploads with 5 no
acl ACL for uploaded files. Valid values are private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, bucket-owner-full-control with private no
delete Delete files that only exists in the bucket with false no
AWS_ACCESS_KEY_ID AWS Access Key ID env yes
AWS_SECRET_ACCESS_KEY AWS Secret Access Key env yes

s3-sync-js-action's People

Contributors

domo84 avatar dependabot[bot] avatar

Watchers

 avatar

Forkers

netliferesearch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.