Invalidate SEO deploys and fix translation script path

This commit is contained in:
Carlos Polop
2026-03-11 21:34:12 +01:00
parent 6a9b95fe96
commit 234bd83229
2 changed files with 15 additions and 2 deletions

View File

@@ -176,4 +176,10 @@ jobs:
run: |
aws s3 cp ./src/robots.txt s3://hacktricks-cloud/robots.txt --content-type text/plain --cache-control max-age=300
aws s3 cp ./src/robots.txt s3://hacktricks-cloud/en/robots.txt --content-type text/plain --cache-control max-age=300
- name: Invalidate CloudFront HTML and SEO assets
run: |
aws cloudfront create-invalidation \
--distribution-id "${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}" \
--paths "/en/*" "/robots.txt" "/en/robots.txt" "/sitemap.xml" "/en/sitemap.xml"