Files
uv/scripts/release.sh
T

26 lines
684 B
Bash
Raw Normal View History

2024-02-22 16:00:13 -06:00
#!/usr/bin/env bash
# Prepare for a release
#
2024-02-22 16:00:13 -06:00
# All additional options are passed to `rooster`
set -eu
script_root="$(realpath "$(dirname "$0")")"
2024-04-02 18:25:27 -05:00
project_root="$(dirname "$script_root")"
2024-02-22 16:00:13 -06:00
echo "Updating metadata with rooster..."
cd "$project_root"
2024-06-11 19:16:29 -04:00
# Update the preview changelog
2024-07-30 18:40:38 -04:00
uv tool run --from 'rooster-blue>=0.0.7' --python 3.12 -- \
2024-06-11 19:16:29 -04:00
rooster release "$@" \
--only-sections preview \
--changelog-file PREVIEW-CHANGELOG.md \
2024-06-11 19:16:29 -04:00
--no-update-pyproject --no-update-version-files
# Update the real changelog
2024-07-30 18:40:38 -04:00
uv tool run --from 'rooster-blue>=0.0.7' --python 3.12 -- \
2024-06-11 19:16:29 -04:00
rooster release "$@" --without-sections preview
2024-02-22 16:00:13 -06:00
echo "Updating lockfile..."
cargo update -p uv