-
Notifications
You must be signed in to change notification settings - Fork 4
/
release.toml
24 lines (22 loc) · 1.08 KB
/
release.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# SPDX-FileCopyrightText: 2021 Agathe Porte <microjoe@microjoe.org>
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
consolidate-commits = true
shared-version = true
consolidate-pushes = true
allow-branch = ["main"]
pre-release-commit-message = "chore: release {{version}}"
tag-message = "{{tag_name}}"
tag-name = "v{{version}}"
sign-tag = true
pre-release-replacements = [
{file="README.md", search="gladis = .*", replace="gladis = \"{{version}}\""},
{file="Cargo.toml", search="^version = \".*\"$", replace="version = \"{{version}}\""},
{file="Cargo.toml", min=0, search="^gladis_proc_macro = \\{ version = \".*\", path = \"../gladis_proc_macro\" \\}$", replace="gladis_proc_macro = { version = \"{{version}}\", path = \"../gladis_proc_macro\" }"},
{file="Cargo.toml", min=0, search="^gladis_proc_macro = \\{ version = \".*\", optional = true, path = \"../gladis_proc_macro\" \\}$", replace="gladis_proc_macro = { version = \"{{version}}\", optional = true, path = \"../gladis_proc_macro\" }"},
]
pre-release-hook = [
"sh",
"-c",
"cd .. && git cliff --tag $NEW_VERSION --output CHANGELOG.md"
]