#!/usr/bin/env sh
# Project-attached wrapper around `make release` so you can run:
#   ./release v0.3.0   (or)   ./release 0.3.0
# instead of:
#   make release VERSION=v0.3.0
# Lives in the repo (no machine-specific alias needed).
set -eu

[ "$#" -ge 1 ] || { echo "Usage: ./release v0.3.0" >&2; exit 1; }

# Accept "0.3.0" or "v0.3.0"; ensure the tag starts with 'v' (the workflow
# only triggers on v* tags).
VERSION="v${1#v}"

exec make release "VERSION=${VERSION}"
