disable-publish = true disable-push = true no-dev-version = true pre-release-commit-message = "v{{version}}" pre-release-hook = ["cargo", "test", "--all", "--all-features"] pre-release-replacements = [ # crypto {file="crypto/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="version = \"{{version}}\"\n", exactly=1}, {file="Cargo.lock", search="dup-crypto\"\nversion = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="dup-crypto\"\nversion = \"{{version}}\"\n", exactly=1}, # common {file="common/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\" }", replace="version = \"{{version}}\" }", exactly=1}, {file="common/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="version = \"{{version}}\"\n", exactly=1}, {file="Cargo.lock", search="dubp-common\"\nversion = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="dubp-common\"\nversion = \"{{version}}\"\n", exactly=1}, # peer {file="peer/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\" }", replace="version = \"{{version}}\" }", exactly=1}, {file="peer/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="version = \"{{version}}\"\n", exactly=1}, {file="Cargo.lock", search="duniter-peer\"\nversion = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="duniter-peer\"\nversion = \"{{version}}\"\n", exactly=1}, # wallet {file="wallet/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\" }", replace="version = \"{{version}}\" }", exactly=1}, {file="wallet/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="version = \"{{version}}\"\n", exactly=1}, {file="Cargo.lock", search="dubp-wallet\"\nversion = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="dubp-wallet\"\nversion = \"{{version}}\"\n", exactly=1}, # documents {file="documents/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\" }", replace="version = \"{{version}}\" }", exactly=1}, {file="documents/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="version = \"{{version}}\"\n", exactly=1}, {file="Cargo.lock", search="dubp-documents\"\nversion = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="dubp-documents\"\nversion = \"{{version}}\"\n", exactly=1}, # documents-parser {file="documents-parser/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\" }", replace="version = \"{{version}}\" }", exactly=1}, {file="documents-parser/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="version = \"{{version}}\"\n", exactly=1}, {file="Cargo.lock", search="dubp-documents-parser\"\nversion = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="dubp-documents-parser\"\nversion = \"{{version}}\"\n", exactly=1}, # block {file="block/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\" }", replace="version = \"{{version}}\" }", exactly=2}, {file="block/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="version = \"{{version}}\"\n", exactly=1}, {file="Cargo.lock", search="dubp-block\"\nversion = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="dubp-block\"\nversion = \"{{version}}\"\n", exactly=1}, # bda-types {file="bda-types/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\" }", replace="version = \"{{version}}\" }", exactly=2}, {file="bda-types/Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="version = \"{{version}}\"\n", exactly=1}, {file="Cargo.lock", search="duniter-bda-types\"\nversion = \"[0-9]+.[0-9]+.[0-9]+\"\n", replace="duniter-bda-types\"\nversion = \"{{version}}\"\n", exactly=1}, # dubp {file="Cargo.toml", search="version = \"[0-9]+.[0-9]+.[0-9]+\" }", replace="version = \"{{version}}\" }", exactly=8}, # CHANGELOG {file="CHANGELOG.md", search="Unreleased", replace="{{version}}"}, {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1}, {file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}"}, {file="CHANGELOG.md", search="", replace="\n\n## [Unreleased] - ReleaseDate"}, {file="CHANGELOG.md", search="", replace="\n[Unreleased]: https://git.duniter.org/libs/dubp-rs-libs/compare/{{tag_name}}...HEAD", exactly=1}, ]