Skip to content

Commit

Permalink
Support cargo-release
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Jan 20, 2024
1 parent ecb8638 commit a544388
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Expand Up @@ -5,7 +5,9 @@ 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

### Changed
- [breaking-change] Update to embedded-hal 1.0.

Expand Down Expand Up @@ -65,6 +67,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/lsm303agr-rs/compare/v0.3.0...HEAD
[0.3.0]: https://github.com/eldruin/lsm303agr-rs/compare/v0.2.2...v0.3.0
[0.2.2]: https://github.com/eldruin/lsm303agr-rs/compare/v0.2.1...v0.2.2
Expand Down
7 changes: 7 additions & 0 deletions release.toml
@@ -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 a544388

Please sign in to comment.