Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 695 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 695 Bytes

S3 Upload / CloudFront invalidate

Github Action to Upload to S3 Bucket and invalidate a CloudFront distribution

name: Upload
on: push
jobs:
  upload:
    runs-on: ubuntu-latest
    steps:
      - name: Initializing action
        uses: actions/checkout@master

      - name: Upload
      - uses: serendipity-ai/github-actions-s3-upload@master
        with:
          SRC: "./dist"
          DEST: "./"
          AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
          AWS_REGION: ${{ secrets.AWS_REGION }}
          AWS_SECRET_ID: ${{ secrets.AWS_SECRET_ID }}
          AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
          AWS_DISTRIBUTION_ID: ${{ secrets.AWS_DISTRIBUTION_ID}}