Draft a new release using the draft script
mainUse the scripts/draft-new-release.py script to prepare a release-candidate tag and trigger the GitHub Actions release workflow.
Prerequisites
Before running the script, ensure the following requirements are met:
- You are on the
mainbranch. - Your local
mainbranch matchesorigin/main. - You have no staged or unstaged tracked changes (untracked files are ignored).
- Rust and Cargo are installed and available in your environment.
Execution
Run the script providing the new version in MAJOR.MINOR.PATCH format.
Automated Actions
The script performs the following steps:
- Updates
CHANGELOG.mdby pointingUnreleasedto the new version, adding fresh sections, and creating a comparison section. - Prompts for a review of
CHANGELOG.md(enteryto proceed). - Updates the package version in
Cargo.toml. - Runs
cargo test --profile fastand updatesCargo.lock. - Commits
CHANGELOG.md,Cargo.toml, andCargo.lockwith the message"bump version NEW_VERSION". - Creates a release candidate tag (e.g.,
NEW_VERSION-rc1). - Pushes the new tags.
- Prints the GitHub Actions URL.
scripts/draft-new-release.py 0.8.0