From 0839478fa03717453c7711f6f0ad046c38454ea9 Mon Sep 17 00:00:00 2001 From: Axel Somerseth Cordova Date: Mon, 13 May 2024 16:45:42 -0600 Subject: [PATCH] cloudfront distribution invalidation added to CI/CD --- .github/workflows/production.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index dcc1930..121d698 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -150,6 +150,6 @@ jobs: run: | aws s3 sync ./build s3://${{ secrets.AWS_S3_BUCKET_NAME }} - # - name: 🧹 Invalidate CloudFront Distribution - # run: | - # aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DISTRIBUTION_ID }} --paths '/*' + - name: 🧹 Invalidate CloudFront Distribution + run: | + aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} --paths '/*'