mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
Simplify release process by using cargo-release
This commit is contained in:
parent
430175278d
commit
e4f30e729a
5 changed files with 26 additions and 3 deletions
|
@ -11,3 +11,7 @@ edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
homepage = "https://github.com/teloxide/teloxide"
|
homepage = "https://github.com/teloxide/teloxide"
|
||||||
repository = "https://github.com/teloxide/teloxide"
|
repository = "https://github.com/teloxide/teloxide"
|
||||||
|
|
||||||
|
[workspace.metadata.release]
|
||||||
|
tag-message = "Release {{crate_name}} version {{version}}"
|
||||||
|
tag-name = "{{prefix}}v{{version}}"
|
||||||
|
|
|
@ -98,6 +98,14 @@ rustdoc-args = ["--cfg", "docsrs", "-Znormalize-docs"]
|
||||||
# https://github.com/rust-lang/rust/issues/88791
|
# https://github.com/rust-lang/rust/issues/88791
|
||||||
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|
||||||
|
|
||||||
|
[package.metadata.release]
|
||||||
|
tag-prefix = "core-"
|
||||||
|
enable-features = ["full"]
|
||||||
|
pre-release-replacements = [
|
||||||
|
{file="README.md", search="teloxide-core = \"[^\"]+\"", replace="teloxide-core = \"{{version}}\""},
|
||||||
|
{file="src/lib.rs", search="teloxide-core = \"[^\"]+\"", replace="teloxide-core = \"{{version}}\""},
|
||||||
|
{file="CHANGELOG.md", search="## unreleased", replace="## unreleased\n\n## {{version}} - {{date}}", exactly=1},
|
||||||
|
]
|
||||||
|
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "self_info"
|
name = "self_info"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
//! asynchronous and built using [`tokio`].
|
//! asynchronous and built using [`tokio`].
|
||||||
//!
|
//!
|
||||||
//!```toml
|
//!```toml
|
||||||
//! teloxide_core = "0.9"
|
//! teloxide-core = "0.9"
|
||||||
//! ```
|
//! ```
|
||||||
//! _Compiler support: requires rustc 1.64+_.
|
//! _Compiler support: requires rustc 1.64+_.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -13,13 +13,17 @@ documentation = "https://docs.rs/teloxide-core/"
|
||||||
# FIXME: add a simple readme for teloxide-macros
|
# FIXME: add a simple readme for teloxide-macros
|
||||||
#readme = "README.md"
|
#readme = "README.md"
|
||||||
|
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
quote = "1.0.7"
|
quote = "1.0.7"
|
||||||
proc-macro2 = "1.0.19"
|
proc-macro2 = "1.0.19"
|
||||||
syn = { version = "1.0.13", features = ["full"] }
|
syn = { version = "1.0.13", features = ["full"] }
|
||||||
heck = "0.4.0"
|
heck = "0.4.0"
|
||||||
|
|
||||||
|
[package.metadata.release]
|
||||||
|
tag-prefix = "macros-"
|
||||||
|
pre-release-replacements = [
|
||||||
|
{file="CHANGELOG.md", search="## unreleased", replace="## unreleased\n\n## {{version}} - {{date}}", exactly=1},
|
||||||
|
]
|
||||||
|
|
|
@ -127,6 +127,13 @@ rustdoc-args = ["--cfg", "docsrs"]
|
||||||
rustc-args = ["--cfg", "dep_docsrs"]
|
rustc-args = ["--cfg", "dep_docsrs"]
|
||||||
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|
||||||
|
|
||||||
|
[package.metadata.release]
|
||||||
|
tag-prefix = ""
|
||||||
|
enable-features = ["full"]
|
||||||
|
pre-release-replacements = [
|
||||||
|
{file="../../README.md", search="teloxide = \\{ version = \"[^\"]+\"", replace="teloxide = { version = \"{{version}}\""},
|
||||||
|
{file="../../CHANGELOG.md", search="## unreleased", replace="## unreleased\n\n## {{version}} - {{date}}", exactly=1},
|
||||||
|
]
|
||||||
|
|
||||||
[[test]]
|
[[test]]
|
||||||
name = "redis"
|
name = "redis"
|
||||||
|
|
Loading…
Reference in a new issue