Sync from deal-sage/deal-sage@83bb6f4c19
This commit is contained in:
@@ -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/"
|
||||
|
||||
Reference in New Issue
Block a user