diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11c2c8e0..364e5765 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,3 +52,15 @@ jobs: - name: Build site and deploy to gh-pages if: github.ref == 'refs/heads/master' run: npm run deploy + + - name: Deploy to S3 + if: github.ref == 'refs/heads/master' + uses: jakejarvis/s3-sync-action@master + with: + args: --acl public-read --follow-symlinks --delete + env: + AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: 'us-east-1' + SOURCE_DIR: '_site'