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 27, 2024
1 parent f20da8e commit bfb4e18
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
- Implemented common traits for `Hours`.
Expand Down Expand Up @@ -46,6 +47,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
This is the initial release to crates.io. There may be some API changes in the
future. All changes will be documented in this CHANGELOG.

<!-- next-url -->
[Unreleased]: https://github.com/eldruin/rtcc-rs/compare/v0.3.0...HEAD
[0.3.0]: https://github.com/eldruin/rtcc-rs/compare/v0.2.1...v0.3.0
[0.2.1]: https://github.com/eldruin/rtcc-rs/compare/v0.2.0...v0.2.1
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 bfb4e18

Please sign in to comment.