diff --git a/scripts/publish-ci-report.sh b/scripts/publish-ci-report.sh index 1961859..c718f4f 100644 --- a/scripts/publish-ci-report.sh +++ b/scripts/publish-ci-report.sh @@ -92,6 +92,16 @@ rm -rf "${DEST}" mkdir -p "${DEST}" cp -a "${SRC}/." "${DEST}/" +create_report_archive() { + local dest="$1" + local archive="${dest}/report.tar.gz" + local tmp + tmp="$(mktemp)" + tar -czf "${tmp}" -C "${dest}" . + mv -f "${tmp}" "${archive}" +} +create_report_archive "${DEST}" + # Convenience: CT puts index under ct_run.*; expose DEST/index.html if [[ ! -f "${DEST}/index.html" ]]; then CT_INDEX="$(find "${DEST}" -type f -name index.html 2>/dev/null | head -n 1 || true)" @@ -123,7 +133,13 @@ INDEX="${REPORTS_DIR}/${REPO}/${RUN_ID}/index.html" [[ -d "${d}" ]] || continue name="$(basename "${d}")" if [[ -f "${d}index.html" ]]; then - echo "