From 178665079c09a1b6dd05d1d33aa1e35f38898a14 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Fri, 12 Jan 2024 13:27:49 +0100 Subject: [PATCH] add s3 sync action --- .github/workflows/s3-sync.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/s3-sync.yml diff --git a/.github/workflows/s3-sync.yml b/.github/workflows/s3-sync.yml new file mode 100644 index 0000000..9dd01df --- /dev/null +++ b/.github/workflows/s3-sync.yml @@ -0,0 +1,16 @@ +name: Sync to S3 + +on: [push, pull_request] + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: jakejarvis/s3-sync-action@master + env: + AWS_S3_BUCKET: ${{ vars.ENGRID_S3_BUCKET_NAME }} + AWS_ACCESS_KEY_ID: ${{ secrets.ENGRID_S3_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.ENGRID_S3_SECRET_KEY }} + SOURCE_DIR: 'dist' + DEST_DIR: '${{ github.event.repository.name }}/${{ github.head_ref || github.ref_name }}'