2024-02-22 16:00:13 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
# Prepare for a release
|
2024-02-23 13:45:46 -06:00
|
|
|
#
|
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 \
|
2024-06-12 17:49:12 -04:00
|
|
|
--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
|
|
|
|
2024-02-23 13:45:46 -06:00
|
|
|
echo "Updating lockfile..."
|
2024-04-02 18:12:47 -05:00
|
|
|
cargo update -p uv
|