Files
uv/scripts/release.sh
Zanie Blue 5a6f2ea319 Generate reference documentation at publish-time and the JSON schema at release-time (#16969)
It'd be nice to avoid churn for contributors. This is a pretty frequent
cause of CI failures and I don't think we really need to have the
reference documentation committed.
2025-12-08 12:31:38 +00:00

28 lines
682 B
Bash
Executable File

#!/usr/bin/env bash
# Prepare for a release
#
# All additional options are passed to `rooster`
set -eu
script_root="$(realpath "$(dirname "$0")")"
project_root="$(dirname "$script_root")"
echo "Updating metadata with rooster..."
cd "$project_root"
# Update the changelog
uvx --python 3.12 rooster@0.1.1 release "$@"
# Bump library crate versions
uv run "$project_root/scripts/bump-workspace-crate-versions.py"
echo "Updating crate READMEs..."
uv run "$project_root/scripts/generate-crate-readmes.py"
echo "Updating lockfile..."
cargo update -p uv
pushd crates/uv-trampoline; cargo update -p uv-trampoline; popd
echo "Generating JSON schema..."
cargo dev generate-json-schema