diff --git a/.github/workflows/client-build.yml b/.github/workflows/client-build.yml index f5dff163..22347359 100644 --- a/.github/workflows/client-build.yml +++ b/.github/workflows/client-build.yml @@ -163,12 +163,14 @@ jobs: # this will require the bucket to exist # so terraform step will need to run first - name: Sync files to S3 + env: + TARGET_ENV: ${{ env.TARGET_ENV }} run: | - aws s3 sync client/wfprev-war/src/main/angular/dist/wfprev s3://wfprev_site_bucket \ + aws s3 sync client/wfprev-war/src/main/angular/dist/wfprev s3://wfprev-$TARGET_ENV-site \ --delete \ --cache-control max-age=31536000,public \ --exclude index.html - aws s3 cp client/wfprev-war/src/main/angular/dist/wfprev/index.html s3://wfprev_site_bucket/index.html \ + aws s3 cp client/wfprev-war/src/main/angular/dist/wfprev/index.html s3://wfprev-$TARGET_ENV-site/index.html \ --cache-control max-age=0,no-cache,no-store,must-revalidate - name: Invalidate CloudFront Cache