From 5ef8c8d6ff3e6c57f3d3698f35fa111262814e64 Mon Sep 17 00:00:00 2001 From: Vim <86254807+vim-usds@users.noreply.github.com> Date: Fri, 10 Sep 2021 13:17:30 -0700 Subject: [PATCH] testing cache busting on client CDN (#661) --- .github/workflows/deploy_main.yml | 16 ++++++++-------- client/src/components/DatasetContainer/index.tsx | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy_main.yml b/.github/workflows/deploy_main.yml index e6612f0d..434e8ab4 100644 --- a/.github/workflows/deploy_main.yml +++ b/.github/workflows/deploy_main.yml @@ -72,14 +72,14 @@ jobs: aws-region: us-east-1 - name: Deploy to Geoplatform AWS run: aws s3 sync ./public/ s3://usds-geoplatform-justice40-website/justice40-tool/${{env.DESTINATION_FOLDER}} --acl public-read --delete - # - name: Invalidate cache on AWS CDNs - # uses: chetan/invalidate-cloudfront-action@master - # env: - # DISTRIBUTION: "ED03LPVC4OXSW" # TODO: set this as ENV var above - # PATHS: "/*" - # AWS_REGION: "us-east-1" - # AWS_ACCESS_KEY_ID: ${{ secrets.CLIENT_DEV_AWS_ACCESS_KEY_ID }} - # AWS_SECRET_ACCESS_KEY: ${{ secrets.CLIENT_DEV_AWS_SECRET_ACCESS_KEY }} + - name: Invalidate cache on AWS CDNs + uses: chetan/invalidate-cloudfront-action@master + env: + DISTRIBUTION: "ED03LPVC4OXSW" # TODO: set this as ENV var above + PATHS: "/*" + AWS_REGION: "us-east-1" + AWS_ACCESS_KEY_ID: ${{ secrets.CLIENT_DEV_AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.CLIENT_DEV_AWS_SECRET_ACCESS_KEY }} - name: Update PR with deployed URL uses: mshick/add-pr-comment@v1 with: diff --git a/client/src/components/DatasetContainer/index.tsx b/client/src/components/DatasetContainer/index.tsx index 3f632bfe..796d836d 100644 --- a/client/src/components/DatasetContainer/index.tsx +++ b/client/src/components/DatasetContainer/index.tsx @@ -72,7 +72,7 @@ const DatasetContainer = () => { }, }); - // JSX return value another build testing + // JSX return value: return (