Generate changelog in CI before publishing.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1846d2f6c6
commit
6459347610
|
@ -15,7 +15,9 @@ steps:
|
||||||
- name: release
|
- name: release
|
||||||
image: rust
|
image: rust
|
||||||
commands:
|
commands:
|
||||||
- cargo publish
|
- cargo install -f git-cliff
|
||||||
|
- git-cliff --output CHANGELOG.md
|
||||||
|
- cargo publish --allow-dirty
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
18
CHANGELOG.md
18
CHANGELOG.md
|
@ -1,18 +0,0 @@
|
||||||
# Changelog
|
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
|
||||||
|
|
||||||
## [unreleased]
|
|
||||||
|
|
||||||
### Miscellaneous Tasks
|
|
||||||
|
|
||||||
- More automated release configuration.
|
|
||||||
|
|
||||||
## Version 0.1.0 - 2022-03-18
|
|
||||||
|
|
||||||
### Miscellaneous Tasks
|
|
||||||
|
|
||||||
- Rename crate and set up automated releases.
|
|
||||||
- Remove demo.
|
|
||||||
|
|
||||||
<!-- generated by git-cliff -->
|
|
|
@ -14,8 +14,4 @@ rand = "0.8"
|
||||||
|
|
||||||
[package.metadata.release]
|
[package.metadata.release]
|
||||||
tag-prefix = ""
|
tag-prefix = ""
|
||||||
publish = false
|
publish = false
|
||||||
pre-release-hook = "git-cliff --output CHANGELOG.md"
|
|
||||||
pre-release-replacements = [
|
|
||||||
{file="CHANGELOG.md", search="## Unreleased", replace="## Version {{version}} - {{date}}"},
|
|
||||||
]
|
|
|
@ -12,7 +12,7 @@ body = """
|
||||||
{% if version %}\
|
{% if version %}\
|
||||||
## Version {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }}
|
## Version {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }}
|
||||||
{% else %}\
|
{% else %}\
|
||||||
## [unreleased]
|
## Unreleased
|
||||||
{% endif %}\
|
{% endif %}\
|
||||||
{% for group, commits in commits | group_by(attribute="group") %}
|
{% for group, commits in commits | group_by(attribute="group") %}
|
||||||
### {{ group | upper_first }}
|
### {{ group | upper_first }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user