# cargo-release on this machine, in this order: version, changelog, tests,
# commit, tag, push. The tag starts the release workflow, which checks, builds
# and publishes.
# Reference: https://rust-lang.github.io/cargo-release/
= "Release {{version}}"
= "v{{version}}"
= "Release {{version}}"
# The release workflow publishes, once every check on the tagged commit passes.
= false
= true
= "origin"
= false
# The tests, before the release commit; a failure stops the release. They build
# in their own directory: packaging leaves a copy of the crate in target/package,
# which a build in target can take for the source when the same version is tried
# again, so the tests would run the old code.
= ["cargo", "test", "--locked", "--target-dir", "target/release-tests"]
# Move whatever is under Unreleased into a section for this version.
[[]]
= "CHANGELOG.md"
= "(?m)^## \\[Unreleased\\]\\n\\n"
= """## [Unreleased]
## [{{version}}] - {{date}}
"""