Skip to content

Commit e66d566

Browse files
committed
docs(publish-docs): CloudFront file detection
1 parent f8f74ec commit e66d566

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish-docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ jobs:
115115
- name: Generate list of changed files for CloudFront to invalidate
116116
if: env.PUBLISH == 'true'
117117
run: |
118-
pushd docs/_build/html; FILES=$(find . -name \* -print | grep html | cut -c2- | sort | uniq | tr '\n' ' '); popd
118+
FILES=$(find docs/_build/html -exec realpath --relative-to docs/_build/html {} \; | awk '{print "/"$0}' | grep "html\|searchindex.js\|custom.css\|.svg");
119+
119120
for file in $FILES; do
120121
echo $file
121122
# add bare directory to list of updated paths when we see index.html

0 commit comments

Comments
 (0)