Skip to content

Commit

Permalink
Support cargo-release
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed May 5, 2024
1 parent bc7b3d5 commit b129c99
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/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

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

## Added
- Added `defmt-03` feature that derives `defmt::Format` for public data types.
Expand Down Expand Up @@ -35,6 +36,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

Initial release to crates.io.

<!-- next-url -->
[Unreleased]: https://github.com/eldruin/bmi160-rs/compare/v1.1.0...HEAD
[1.1.0]: https://github.com/eldruin/bmi160-rs/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/eldruin/bmi160-rs/compare/v0.1.2...v1.0.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/eldruin/{{crate_name}}-rs/compare/{{tag_name}}...HEAD", exactly=1},
]

0 comments on commit b129c99

Please sign in to comment.