disable cloudfront deploy for now

This commit is contained in:
Derek Slenk 2025-06-29 22:36:31 -04:00 committed by GitHub
parent 21ce49b769
commit 5a325d0273
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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