Skip to content

Commit

Permalink
Invalidate translations
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian committed Jan 23, 2024
1 parent 193ebdf commit 42e6ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
aws s3 cp dist/index.html s3://calendars.worldskills.show/index.html --metadata-directive REPLACE --cache-control max-age=60
- name: Invalidate staging
if: github.ref == 'refs/heads/staging'
run: aws cloudfront create-invalidation --distribution-id E2YVXBZSB5EAXR --paths /index.html
run: aws cloudfront create-invalidation --distribution-id E2YVXBZSB5EAXR --paths /index.html /assets/i18n/*

- name: Build for production
if: github.ref == 'refs/heads/prod'
Expand All @@ -58,4 +58,4 @@ jobs:
aws s3 cp dist/index.html s3://calendars.worldskills.org/index.html --metadata-directive REPLACE --cache-control max-age=60
- name: Invalidate production
if: github.ref == 'refs/heads/prod'
run: aws cloudfront create-invalidation --distribution-id E2OY509NYCBMY4 --paths /index.html
run: aws cloudfront create-invalidation --distribution-id E2OY509NYCBMY4 --paths /index.html /assets/i18n/*

0 comments on commit 42e6ca6

Please sign in to comment.