diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 852b13e..f04cb0c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,14 +40,14 @@ jobs: run: | aws s3 sync public/ s3://angrymichigander.com --delete --no-cli-pager - - name: Invalidate CloudFront cache - run: | - # Get the CloudFront distribution ID for angrymichigander.com - DISTRIBUTION_ID=$(aws cloudfront list-distributions --no-cli-pager --query "DistributionList.Items[?contains(Aliases.Items, 'angrymichigander.com')].Id" --output text) + # - name: Invalidate CloudFront cache + # run: | + # # Get the CloudFront distribution ID for angrymichigander.com + # DISTRIBUTION_ID=$(aws cloudfront list-distributions --no-cli-pager --query "DistributionList.Items[?contains(Aliases.Items, 'angrymichigander.com')].Id" --output text) - if [ ! -z "$DISTRIBUTION_ID" ]; then - echo "Creating CloudFront invalidation for distribution: $DISTRIBUTION_ID" - aws cloudfront create-invalidation --no-cli-pager --distribution-id $DISTRIBUTION_ID --paths "/*" - else - echo "No CloudFront distribution found for angrymichigander.com" - fi + # if [ ! -z "$DISTRIBUTION_ID" ]; then + # echo "Creating CloudFront invalidation for distribution: $DISTRIBUTION_ID" + # aws cloudfront create-invalidation --no-cli-pager --distribution-id $DISTRIBUTION_ID --paths "/*" + # else + # echo "No CloudFront distribution found for angrymichigander.com" + # fi