Skip to content

Commit 72fbd2c

Browse files
chore(release): prep for v3.0.1
1 parent f61d2b5 commit 72fbd2c

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
6+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
7+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8+
19
# Changelog
210
All notable changes to this project will be documented in this file.
311

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "papa"
3-
version = "3.0.0"
3+
version = "3.0.1" # managed by release.sh
44
edition = "2021"
55
license = "MIT"
66
description = "A cli mod manager for the Northstar launcher"

cliff.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ All notable changes to this project will be documented in this file.\n
99
1010
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1111
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
12+
1213
"""
1314
# template for the changelog body
1415
# https://tera.netlify.app/docs/#introduction
1516
body = """
1617
{% if version %}\
17-
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
18+
## {{ version }}
1819
{% else %}\
1920
## [unreleased]
2021
{% endif %}\

release.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ echo "Prep for release $1..."
1212

1313
# update version
1414
msg="# managed by release.sh"
15-
sed -E -i "s/^version = .* $msg$/version = \"${1#v}\" $msg/" papa*/Cargo.toml
15+
sed -E -i "s/^version = .* $msg$/version = \"${1#v}\" $msg/" Cargo.toml
1616

1717
# generate changelog
18-
git cliff --tag "$1" --prepend CHANGELOG.md
18+
git cliff -l --tag "$1" --prepend CHANGELOG.md
1919

2020
git add -A && git commit -m "chore(release): prep for $1"
2121
git show
2222

23-
changelog=$(git cliff --unrelease --strip all)
24-
git tag -s -a "$1" -m "Release $1" -m "$changelog"
23+
changelog=$(git cliff --unreleased --strip all)
24+
git tag -s -a "$1" -m "Released $1" -m "$changelog"
2525
git tag -v "$1"
2626
echo "Done! (ready to 'git push' and 'git push --tags')"

0 commit comments

Comments
 (0)