Skip to content

Commit

Permalink
Fix cloudfront create-invalidation paths
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek committed Feb 7, 2025
1 parent 61e7eb5 commit fad2f7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ jobs:
PR_NUMBER: ${{ needs.pull-request-data.outputs.number }}
run: |
aws s3 sync ./html "s3://elastic-docs-v3-website-preview/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" --delete
aws cloudfront create-invalidation --distribution-id EKT7LT5PM8RKS --paths "/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}*"
aws cloudfront create-invalidation \
--distribution-id EKT7LT5PM8RKS \
--paths "/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" "/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}/*"
- name: Update deployment status
uses: actions/github-script@v7
Expand Down

0 comments on commit fad2f7a

Please sign in to comment.