Skip to content

Commit

Permalink
feat: add create invalidation step (GreptimeTeam#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
daviderli614 committed Oct 12, 2023
1 parent d6e5b91 commit 575e7ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/addDocsToS3BucketAWS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,11 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: cn-northwest-1

- name: Create cloudfront invalidation
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.DOCS_DISTRIBUTION_ID }} --paths /
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: cn-northwest-1
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,6 @@ cache/
.DS_Store

*~

# editor and IDE paraphernalia
.idea

0 comments on commit 575e7ff

Please sign in to comment.