More automated release configuration.

This commit is contained in:
Nolan Darilek 2022-03-18 17:03:07 -05:00
parent b4d08120ce
commit 1846d2f6c6
3 changed files with 23 additions and 2 deletions

18
CHANGELOG.md Normal file
View File

@ -0,0 +1,18 @@
# 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 -->

View File

@ -15,4 +15,7 @@ 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.'"] pre-release-hook = "git-cliff --output CHANGELOG.md"
pre-release-replacements = [
{file="CHANGELOG.md", search="## Unreleased", replace="## Version {{version}} - {{date}}"},
]

View File

@ -10,7 +10,7 @@ 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 %}\