pre-release-replacements = [ {file = "CHANGELOG.md", search = "Unreleased", replace = "{{version}}"}, {file = "CHANGELOG.md", search = "/commits/HEAD", replace = "/commits/{{tag_name}}", min = 0, max = 1}, {file = "CHANGELOG.md", search = "\\.\\.\\.HEAD", replace = "...{{tag_name}}", min = 0, max = 1}, {file = "CHANGELOG.md", search = "ReleaseDate", replace = "{{date}}"}, {file = "CHANGELOG.md", search = "", replace = "\n\n## [Unreleased] - ReleaseDate", exactly = 1}, {file = "CHANGELOG.md", search = "", replace = "\n[Unreleased]: https://github.com/gifnksm/cargo-sync-rdme/compare/{{tag_name}}...HEAD", exactly = 1}, {file = "src/lib.rs", search = "^//! cargo-sync-rdme = \".*\"$", replace = "//! cargo-sync-rdme = \"{{version}}\"", exactly = 1}, {file = "src/lib.rs", search = "^#!\\[doc\\(html_root_url = \"https://docs.rs/cargo-sync-rdme/.*\"\\)\\]$", replace = "#![doc(html_root_url = \"https://docs.rs/cargo-sync-rdme/{{version}}\")]", exactly = 1}, ] pre-release-hook = ["cargo", "xtask", "pre-release"]