Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/build_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ jobs:

- name: Invalidate CloudFront HTML and SEO assets
run: |
# /en/* covers /en/robots.txt and /en/sitemap.xml; only invalidate
# root SEO files separately.
aws cloudfront create-invalidation \
--distribution-id "${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}" \
--paths "/en/*" "/robots.txt" "/en/robots.txt" "/sitemap.xml" "/en/sitemap.xml"
--paths "/en/*" "/robots.txt" "/sitemap.xml"

4 changes: 3 additions & 1 deletion .github/workflows/translate_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ jobs:
shell: bash
run: |
set -euo pipefail
paths=("/$BRANCH/*" "/$BRANCH/sitemap.xml")
# The wildcard already invalidates the language sitemap, so avoid
# paying for a redundant explicit /$BRANCH/sitemap.xml path.
paths=("/$BRANCH/*")
if [ "${{ steps.root_sitemap.outputs.changed }}" = "true" ]; then
paths+=("/sitemap.xml")
fi
Expand Down