Skip to content

Commit

Permalink
Support cargo-release
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Aug 2, 2024
1 parent cb7e16e commit 4bd78bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
<!-- next-header -->
## [Unreleased] - ReleaseDate

### Changed

Expand Down Expand Up @@ -85,6 +86,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [v0.1.0] - 2019-11-05


<!-- next-url -->
[Unreleased]: https://github.com/stm32-rs/stm32f7xx-hal/compare/v0.7.0...HEAD
[v0.7.0]: https://github.com/stm32-rs/stm32f7xx-hal/compare/v0.6.0...v0.7.0
[v0.6.0]: https://github.com/stm32-rs/stm32f7xx-hal/compare/v0.5.0...v0.6.0
Expand Down
7 changes: 7 additions & 0 deletions release.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pre-release-replacements = [
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/stm32-rs/{{crate_name}}/compare/{{tag_name}}...HEAD", exactly=1},
]

0 comments on commit 4bd78bb

Please sign in to comment.