Update cargo-release configuration

pull/28/head
Dominik Nakamura 2 years ago
parent 7948d30d67
commit a8631ce182
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910

@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
<!-- next-header -->
## [Unreleased] - ReleaseDate
### Changed
@ -198,6 +199,7 @@ is currently in progress on the `v5-api` branch and the release is expected to b
- Initial release.
<!-- next-url -->
[Unreleased]: https://github.com/dnaka91/obws/compare/v0.9.1...HEAD
[0.9.1]: https://github.com/dnaka91/obws/compare/v0.9.0...v0.9.1
[0.9.0]: https://github.com/dnaka91/obws/compare/v0.8.0...v0.9.0

@ -3,7 +3,6 @@ sign-tag = true
pre-release-commit-message = "Bump up version number to {{version}}"
tag-message = "Version {{version}}"
dev-version = false
[[pre-release-replacements]]
file = "README.md"
@ -19,15 +18,35 @@ prerelease = true
[[pre-release-replacements]]
file = "CHANGELOG.md"
search = '##\s*\[Unreleased\]\s*-\s*ReleaseDate'
search = 'Unreleased'
replace = '{{version}}'
exactly = 2
[[pre-release-replacements]]
file = "CHANGELOG.md"
search = '\.\.\.HEAD'
replace = '...{{tag_name}}'
exactly = 1
[[pre-release-replacements]]
file = "CHANGELOG.md"
search = 'ReleaseDate'
replace = '{{date}}'
exactly = 1
[[pre-release-replacements]]
file = "CHANGELOG.md"
search = '<!-- next-header -->'
replace = '''
<!-- next-header -->
## [Unreleased] - ReleaseDate
## [{{version}}] - {{date}}'''
'''
exactly = 1
[[pre-release-replacements]]
file = "CHANGELOG.md"
search = '\[Unreleased\]:.+HEAD'
search = '<!-- next-url -->'
replace = '''
[Unreleased]: https://github.com/dnaka91/obws/compare/v{{version}}...HEAD
[{{version}}]: https://github.com/dnaka91/obws/compare/v{{prev_version}}...v{{version}}'''
<!-- next-url -->
[Unreleased]: https://github.com/dnaka91/obws/compare/{{tag_name}}...HEAD'''
exactly = 1

Loading…
Cancel
Save