We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2dfbd64 + de8fa66 commit e85a11fCopy full SHA for e85a11f
.github/workflows/aws.yml
@@ -1,4 +1,4 @@
1
-name: Deploy to S3
+name: S3-sync
2
3
on:
4
push:
@@ -9,6 +9,10 @@ permissions:
9
id-token: write # required for requesting the JWT for OpenID Connect (OIDC)
10
contents: read # required for actions/checkout
11
12
+concurrency:
13
+ group: ci-${{ github.workflow }}-${{ github.ref_name }}
14
+ cancel-in-progress: true
15
+
16
jobs:
17
deploy:
18
runs-on: ubuntu-slim
@@ -36,3 +40,9 @@ jobs:
36
40
--exclude ".github/*" \
37
41
--exclude "README.md" \
38
42
--exclude "LICENSE"
43
44
+ - name: invalidate CloudFront cache
45
+ run: |
46
+ aws cloudfront create-invalidation \
47
+ --distribution-id ${{ vars.CF_DISTRIBUTION_ID }} \
48
+ --paths "/*"
0 commit comments