Skip to content

Commit 5109938

Browse files
committed
fix cargo release config
1 parent 6e7fbf4 commit 5109938

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

release.toml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ tag-name = "v{{version}}"
1010
tag-message = "Release {{version}}"
1111

1212
# Publish configuration
13-
# Note: Using pre-release-hook for custom publish command
14-
publish = false
15-
# registry = "crates-io"
13+
publish = true
1614

1715
# Push configuration
1816
push = true
@@ -24,17 +22,16 @@ consolidate-commits = false
2422
# Skip verification checks (set to true to skip tests/formatting)
2523
verify = true
2624

27-
# Pre-release hook to run your custom publish command
28-
# This executes BEFORE creating the git commit and tag
29-
pre-release-hook = "cargo publish -p sofos"
30-
3125
# Pre-release replacements for updating version references in other files
3226
[[pre-release-replacements]]
3327
file = "CHANGELOG.md"
34-
search = "## \\[Unreleased\\]"
28+
search = "## \\[Unreleased\\]\n\n## "
3529
replace = """## [Unreleased]
3630
37-
## [{{version}}] - {{date}}"""
31+
## [{{version}}] - {{date}}
32+
33+
## """
34+
exactly = 1
3835

3936
# Example: Update version in README
4037
# [[pre-release-replacements]]

0 commit comments

Comments
 (0)