fix(release.sh): define REPO variable for tea CLI --repo flag

release.sh used $REPO in the tea releases create command (line 133) but never defined it, causing 'unbound variable' under set -u. Define REPO from GITEA_OWNER/GITEA_REPO env vars (same pattern as the verify_asset function at line 147). This is the v0.8.x zero-asset root cause's sibling bug — tea releases create failed silently on REPO unbound, but the script's error handling surfaced it.

---ci---
project: orca
phase: 0
milestone: v0.11
status: ship
---/ci---
This commit is contained in:
Jon Chery
2026-08-07 03:48:27 +00:00
parent 715fcb54b3
commit 9b984ad720
+5
View File
@@ -39,6 +39,11 @@ for env_file in "$REPO_ROOT/.env" "$PWD/.env" "./.env"; do
fi
done
# --- gitea repo resolution ------------------------------------------------
# REPO is the tea-CLI repo slug (owner/repo). tea resolves login from its
# config (~/.config/tea/config.yml) and the repo slug from --repo.
REPO="${GITEA_OWNER:-coreci}/${GITEA_REPO:-orca}"
# --- helpers --------------------------------------------------------------
err() { echo "release: error: $*" >&2; exit 1; }