From 1846d2f6c63081607b15a8c58e83a902efe90bb8 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 18 Mar 2022 17:03:07 -0500 Subject: [PATCH] More automated release configuration. --- CHANGELOG.md | 18 ++++++++++++++++++ Cargo.toml | 5 ++++- cliff.toml | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..23a9de5 --- /dev/null +++ b/CHANGELOG.md @@ -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. + + diff --git a/Cargo.toml b/Cargo.toml index 003a445..7409aa0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,4 +15,7 @@ rand = "0.8" [package.metadata.release] tag-prefix = "" 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.'"] \ No newline at end of file +pre-release-hook = "git-cliff --output CHANGELOG.md" +pre-release-replacements = [ + {file="CHANGELOG.md", search="## Unreleased", replace="## Version {{version}} - {{date}}"}, +] \ No newline at end of file diff --git a/cliff.toml b/cliff.toml index 98e9da4..7edaa36 100644 --- a/cliff.toml +++ b/cliff.toml @@ -10,7 +10,7 @@ All notable changes to this project will be documented in this file.\n # https://tera.netlify.app/docs/#introduction body = """ {% 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 %}\ ## [unreleased] {% endif %}\