We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent debf5f2 commit 090b18eCopy full SHA for 090b18e
1 file changed
.github/workflows/docs-tos.yml
@@ -106,6 +106,20 @@ jobs:
106
--cache-control "${HTML_CACHE_CONTROL}" \
107
--only-show-errors
108
109
+ while IFS= read -r -d '' html_file; do
110
+ rel_path="${html_file#${DIST_DIR}/}"
111
+ case "${rel_path}" in
112
+ index.html|404.html) continue ;;
113
+ esac
114
+
115
+ clean_path="${rel_path%.html}"
116
+ aws s3 cp "${html_file}" "s3://${TOS_BUCKET}/${clean_path}" \
117
+ --endpoint-url "https://${TOS_S3_ENDPOINT}" \
118
+ --content-type "text/html; charset=utf-8" \
119
+ --cache-control "${HTML_CACHE_CONTROL}" \
120
+ --only-show-errors
121
+ done < <(find "${DIST_DIR}" -type f -name "*.html" -print0)
122
123
aws s3 cp "${DIST_DIR}/assets" "s3://${TOS_BUCKET}/assets/" \
124
--endpoint-url "https://${TOS_S3_ENDPOINT}" \
125
--recursive \
0 commit comments