Files
coursebank/scripts/check-tag-version.sh
alexm 3a7a0d5873
Pipeline / check (push) Successful in 1m56s
Pipeline / release (push) Skipped
Pipeline / docs (push) Successful in 1m47s
Pipeline / nightly (push) Successful in 6m41s
feat: provide way to build and attach platforms
2026-08-08 11:46:15 -04:00

19 lines
473 B
Bash
Executable File

#!/usr/bin/env bash
# Fail unless the release tag matches the crate version.
# Env: TAG (a leading "v" is tolerated). Run from the repository root.
set -euo pipefail
: "${TAG:?set TAG to the tag being released}"
here="$(cd "$(dirname "$0")" && pwd)"
tag="${TAG#v}"
version="$(bash "$here/version.sh")"
if [ "$tag" != "$version" ]; then
echo "tag ${TAG} does not match Cargo.toml version ${version}" >&2
exit 1
fi
echo "tag ${TAG} matches crate version ${version}"