creating invalidations
CICD / Explore-Gitea-Actions (push) Failing after 1m8s Details

This commit is contained in:
Isaac Johnson 2026-06-23 19:54:38 -05:00
parent 345248eaae
commit 14599b6bc7
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ jobs:
- name: Sync to AWS
run: |
aws cloudfront create-invalidation --distribution-id EWYXMJ6L92Q6I --paths "/index.html"
paths=$(find ./public -type f -name "*.html" -print | sed 's|^./public/|\/|g' | sed 's/\n/ /g')
aws cloudfront create-invalidation --distribution-id EWYXMJ6L92Q6I --paths "$paths"
if: gitea.ref == 'refs/heads/main'
env: # Or as an environment variable
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWSSECRETKEY }}