mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
chore: Configure release process
Experimenting with treating clap-derive and clap one and the same from the release process perspective. The completion generators are a bit more independent.
This commit is contained in:
parent
e9b19d676b
commit
c807f892b1
3 changed files with 21 additions and 0 deletions
11
Cargo.toml
11
Cargo.toml
|
@ -35,6 +35,17 @@ include = [
|
|||
[package.metadata.docs.rs]
|
||||
features = ["doc"]
|
||||
|
||||
[package.metadata.release]
|
||||
shared-version = true
|
||||
pre-release-replacements = [
|
||||
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
|
||||
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
|
||||
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
|
||||
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
|
||||
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/clap-rs/clap/compare/{{tag_name}}...HEAD", exactly=1},
|
||||
{file="README.md", search="github.com/clap-rs/clap/blob/[^/]+/", replace="github.com/clap-rs/clap/blob/{{tag_name}}/", exactly=9, prerelease = true},
|
||||
]
|
||||
|
||||
[features]
|
||||
default = [
|
||||
"std",
|
||||
|
|
|
@ -22,6 +22,10 @@ categories = ["command-line-interface", "development-tools::procedural-macro-hel
|
|||
license = "MIT OR Apache-2.0"
|
||||
readme = "README.md"
|
||||
|
||||
[package.metadata.release]
|
||||
shared-version = true
|
||||
tag = false
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
bench = false
|
||||
|
|
6
release.toml
Normal file
6
release.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
pre-release-commit-message = "chore: Release"
|
||||
tag-message = "{{tag_name}}"
|
||||
tag-name = "{{prefix}}v{{version}}"
|
||||
consolidate-commits = true
|
||||
consolidate-pushes = true
|
||||
allow-branch = ["master"]
|
Loading…
Reference in a new issue