Compare commits
2 Commits
b4d08120ce
...
6459347610
Author | SHA1 | Date | |
---|---|---|---|
6459347610 | |||
1846d2f6c6 |
|
@ -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
|
||||||
|
|
|
@ -14,5 +14,4 @@ rand = "0.8"
|
||||||
|
|
||||||
[package.metadata.release]
|
[package.metadata.release]
|
||||||
tag-prefix = ""
|
tag-prefix = ""
|
||||||
publish = false
|
publish = false
|
||||||
pre-release-hook = ["git cliff --tag {{tag_name}} --output CHANGELOG.md", "git add CHANGELOG.md", "git commit CHANGELOG.md -m 'Update changelog for release.'"]
|
|
|
@ -10,9 +10,9 @@ All notable changes to this project will be documented in this file.\n
|
||||||
# https://tera.netlify.app/docs/#introduction
|
# https://tera.netlify.app/docs/#introduction
|
||||||
body = """
|
body = """
|
||||||
{% if version %}\
|
{% if 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