-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.toml
More file actions
20 lines (19 loc) · 931 Bytes
/
Copy pathrelease.toml
File metadata and controls
20 lines (19 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# release.toml — project-level overrides only.
# Workspace-level defaults live in Cargo.toml [workspace.metadata.release].
[workspace]
push = true
publish = false # set to true if publishing to crates.io
consolidate-pushes = true
pre-release-hook = ["./scripts/pre-release-hook.sh"]
# Update changelog using git-cliff
pre-release-replacements = [
{file = "CHANGELOG.md", search = "unreleased", replace = "{{version}}", min = 1},
{file = "CHANGELOG.md", search = "Unreleased", replace = "{{version}}", min = 1},
{file = "VERSION", search = ".*", replace = "{{version}}", exactly = 1},
]
[changelog]
# use git-cliff for changelog generation
# we can call it in pre-release-hook.sh or here if cargo-release supports it directly
# actually, better to handle it in pre-release-hook.sh
# or use the [changelog] section if available in the version being used.
# Let's add it to the pre-release-hook.sh for maximum flexibility.