creating invalidations
CICD / Explore-Gitea-Actions (push) Failing after 1m8s
Details
CICD / Explore-Gitea-Actions (push) Failing after 1m8s
Details
This commit is contained in:
parent
345248eaae
commit
14599b6bc7
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue