From a4ad02f5735b0da24e6eb4569f13c5085b7646a5 Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 3 Nov 2022 19:52:06 +0800 Subject: [PATCH] fix bucket dir --- .github/workflows/cd.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index edf2713..06f9567 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -79,7 +79,7 @@ jobs: # cache-control of 10 mins because we *need* to be able to update # this and have people see the results can be fixed well with a static site builder - run: | - aws s3 sync public s3://test1.tea.xyz \ + aws s3 sync public s3://www.tea.xyz \ --metadata-directive REPLACE \ --cache-control max-age=600 \ --exclude '.git/*' --exclude '.github/*' \ @@ -92,10 +92,10 @@ jobs: #TODO create a github-action that can be used to parse the # output from `s3 sync` into invalidation commands. NOTE # I have already looked for something to do this and failed. - # - run: | - # aws cloudfront create-invalidation \ - # --distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }} \ - # --paths '/*' + - run: | + aws cloudfront create-invalidation \ + --distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }} \ + --paths '/*' - name: Seal Deployment uses: bobheadxi/deployments@v1