This commit is contained in:
DealSage template sync
2026-09-26 05:57:32 +00:00
parent 36aeaf65c3
commit f176fca2bd
15 changed files with 472 additions and 46 deletions
+6 -3
View File
@@ -3,6 +3,7 @@
# record the build as a check so DealSage shows it beside the declared ones.
set -euo pipefail
. "$(dirname "$0")/lib.sh"
step_start build
require_env APP_ID DEALSAGE_FUNCTIONS_URL PUBLISH_TOKEN SUPABASE_ANON_KEY SUPABASE_URL
git_context
@@ -30,7 +31,9 @@ payload="$(jq -n \
logTail:($log | split("\n") | .[-80:] | join("\n")), reportedBy:"ci",
startedAt:$started, finishedAt:$finished}')"
ds_post record-app-check "$payload" >/dev/null || warn "could not record the build check in DealSage"
rm -f "$logf"
summary "- build: **$status** (${dur}ms)"
[ "$rc" = 0 ] || die "Build failed ($summary); nothing was published."
log "Build ok: $(find dist -type f | wc -l) files"
[ "$rc" = 0 ] || fail_build build_failed "Build failed ($summary); nothing was published." "$logf"
rm -f "$logf"
files="$(find dist -type f | wc -l | tr -d ' ')"
log "Build ok: $files files"
step_done build passed "$files $([ "$files" = 1 ] && echo file || echo files) in dist/"