File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -106,26 +106,6 @@ jobs:
106
106
AWS_REGION : " us-west-1" # optional: defaults to us-east-1
107
107
SOURCE_DIR : " docs/_build/html" # optional: defaults to entire repository
108
108
109
- - name : Generate list of changed files for CloudFront to invalidate
110
- if : env.PUBLISH == 'true'
111
- run : |
112
- FILES=$(find docs/_build/html -exec realpath --relative-to docs/_build/html {} \; | awk '{print "/"$0}' | grep "html\|searchindex.js\|custom.css\|.svg");
113
- for file in $FILES; do
114
- echo $file
115
- # add bare directory to list of updated paths when we see index.html
116
- [[ "$file" == *"/index.html" ]] && echo $file | sed -e 's/\/index.html$/\//'
117
- done | sort | uniq | tr '\n' ' ' > .updated_files
118
-
119
- - name : Invalidate on CloudFront
120
- uses : chetan/invalidate-cloudfront-action@v2.3
121
- if : env.PUBLISH == 'true'
122
- env :
123
- DISTRIBUTION : ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION }}
124
- AWS_REGION : " us-east-1"
125
- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
126
- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
127
- PATHS_FROM : .updated_files
128
-
129
109
- name : Purge cache on Cloudflare
130
110
uses : jakejarvis/cloudflare-purge-action@v0.3.0
131
111
env :
You can’t perform that action at this time.
0 commit comments