Skip to content

Commit

Permalink
Configure releases in Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
swsnr committed Feb 1, 2025
1 parent 19f21f1 commit 4211002
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,14 @@ rustix = { version = "0.38.34", default-features = false, features = [

[target.'cfg(windows)'.dependencies]
windows-targets = "0.52.4"

[package.metadata.release]
pre-release-commit-message = "Release {{version}}"
tag-prefix = ""
tag-message = "Version {{tag_name}}"
pre-release-replacements = [
# Update the changelog
{ file = "CHANGELOG.md", search = "## \\[Unreleased\\]", replace = "## [Unreleased]\n\n## [{{version}}] – {{date}}", exactly = 1 },
{ file = "CHANGELOG.md", search = "HEAD", replace = "{{tag_name}}", exactly = 1 },
{ file = "CHANGELOG.md", search = "\\[Unreleased\\]: ", replace = "[Unreleased]: https://github.com/swsnr/gethostname.rs/compare/{{tag_name}}...HEAD\n[{{version}}]: ", exactly = 1 },
]
9 changes: 0 additions & 9 deletions release.toml

This file was deleted.

0 comments on commit 4211002

Please sign in to comment.