From 521e53b21afa138fc69cf9fb8ed7947bd64a41a2 Mon Sep 17 00:00:00 2001 From: Mahad Date: Wed, 5 Jun 2024 17:41:51 +0500 Subject: [PATCH] Sync web directory --- .github/workflows/upload.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/upload.yaml b/.github/workflows/upload.yaml index c4f4cef..309d299 100644 --- a/.github/workflows/upload.yaml +++ b/.github/workflows/upload.yaml @@ -31,7 +31,7 @@ jobs: aws-region: us-east-1 - name: Deploy static site to S3 bucket - run: aws s3 cp ./build/web/ s3://${{ secrets.AWS_BUCKET }}/wick/ --recursive + run: aws s3 sync ./build/web/ s3://${{ secrets.AWS_BUCKET }}/wick/ --delete - name: Invalidate CloudFront run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --paths "/wick/*"