Add Forgejo Actions and documentation #1

Merged
deco merged 9 commits from feature/add-github-actions into main 2025-07-17 21:38:11 +03:00
Showing only changes of commit 5a325d0273 - Show all commits

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