disable cloudfront deploy for now
This commit is contained in:
parent
21ce49b769
commit
5a325d0273
1 changed files with 10 additions and 10 deletions
20
.github/workflows/deploy.yml
vendored
20
.github/workflows/deploy.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue