From 332868a6b0f6fe7274ca2f1ca2e92eec684277cf Mon Sep 17 00:00:00 2001 From: Ibo Sy Date: Fri, 22 Sep 2023 17:19:25 +0200 Subject: [PATCH] adjust workflow sync command --- .github/workflows/deploy-main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-main.yml b/.github/workflows/deploy-main.yml index 5121fca..7bd6b07 100644 --- a/.github/workflows/deploy-main.yml +++ b/.github/workflows/deploy-main.yml @@ -27,5 +27,5 @@ jobs: aws-region: eu-west-1 - name: 🚀 Deploy AWS S3 run: | - aws s3 sync public ${{ vars.AWS_S3_BUCKET_URL }} + aws s3 sync --delete public ${{ vars.AWS_S3_BUCKET_URL }} aws cloudfront create-invalidation --distribution-id ${{ vars.CF_DISTRIBUTION_ID }} --paths "/*"