uv/scripts/release.sh
Zanie Blue 906c1ca71d
Fixups to release.sh and sync_scenarios.sh (#2790)
I missed a few things, sorry!
2024-04-03 01:59:58 +00:00

29 lines
597 B
Bash
Executable file

#!/usr/bin/env bash
# Prepare for a release
#
# All additional options are passed to `rooster`
#
# See `scripts/release/` for supporting files.
set -eu
script_root="$(realpath "$(dirname "$0")")"
project_root="$(dirname "$script_root")"
cd "$script_root/release"
echo "Setting up a temporary environment..."
uv venv
source ".venv/bin/activate"
uv pip install -r requirements.txt
echo "Updating metadata with rooster..."
cd "$project_root"
rooster release "$@"
echo "Updating lockfile..."
cargo update -p uv
echo "Generating contributors list..."
echo ""
echo ""
rooster contributors --quiet