diff --git a/.github/workflows/addDocsToS3BucketAWS.yml b/.github/workflows/addDocsToS3BucketAWS.yml index 0ab61b4fe..82e4bf23e 100644 --- a/.github/workflows/addDocsToS3BucketAWS.yml +++ b/.github/workflows/addDocsToS3BucketAWS.yml @@ -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 diff --git a/.gitignore b/.gitignore index b06b2434b..d88baf61a 100644 --- a/.gitignore +++ b/.gitignore @@ -112,3 +112,6 @@ cache/ .DS_Store *~ + +# editor and IDE paraphernalia +.idea