Bring back Gitea CI + auto-publish; share release helpers; strengthen multi-turn tool/job prompts with a unit contract; ccache/make help and --release bootstrap. Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
552 B
Bash
Executable File
15 lines
552 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# CI helper: publish release assets with RELEASE_TOKEN falling back to
|
|
# GITHUB_TOKEN. Skips cleanly when neither is set.
|
|
# scripts/ci_publish.sh FILE...
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
export GITEA_TOKEN="${RELEASE_TOKEN:-${GITEA_TOKEN:-${GITHUB_TOKEN:-}}}"
|
|
if [[ -z "${GITEA_TOKEN}" ]]; then
|
|
echo "::warning::no RELEASE_TOKEN / GITHUB_TOKEN; skip auto-release"
|
|
exit 0
|
|
fi
|
|
[[ $# -gt 0 ]] || { echo "usage: $0 FILE..." >&2; exit 1; }
|
|
export CI="${CI:-true}"
|
|
exec bash "$ROOT/scripts/release.sh" "$@"
|