teqo-backup/scripts/vercel-ignore-build.sh
Francisco Ignácio Fontoura Solla f021992de0 ci: main-only cutover with gated Vercel deploy
Remove stage/promote/Neon smoke. PR CI targets main; ci.yml full-suite
verifier deploys via vercel CLI and requeues when HEAD moves. Pool uses
POOL_GITHUB_TOKEN and POOL_BASE_REF=main. Docs/skills/rules retargeted.
2026-07-31 20:57:18 -03:00

20 lines
705 B
Bash
Executable file

#!/usr/bin/env bash
# Vercel "Ignored Build Step": exit 0 = skip deployment, exit 1 = build.
# Production deploys are gated by GitHub Actions (`ci.yml` → `vercel deploy --prod`).
# Git pushes must NOT trigger Vercel builds (Hobby concurrency + ungated deploy race).
set -euo pipefail
ref="${VERCEL_GIT_COMMIT_REF:-}"
if [ "$ref" = "main" ] || [ "$ref" = "stage" ]; then
echo "skip: $ref — production deploy is Actions-gated (ci.yml), not Vercel Git"
exit 0
fi
if [[ "$ref" == agent/* ]] || [[ "$ref" == cursor/* ]]; then
echo "skip: agent/cursor branch ($ref) — merge gate is GitHub Actions, not Vercel"
exit 0
fi
echo "skip: non-canonical branch ($ref) — no Vercel Git builds"
exit 0