File tree 4 files changed +15
-6
lines changed
4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change
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
+
1
9
# Changelog
2
10
All notable changes to this project will be documented in this file.
3
11
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " papa"
3
- version = " 3.0.0 "
3
+ version = " 3.0.1 " # managed by release.sh
4
4
edition = " 2021"
5
5
license = " MIT"
6
6
description = " A cli mod manager for the Northstar launcher"
Original file line number Diff line number Diff line change @@ -9,12 +9,13 @@ All notable changes to this project will be documented in this file.\n
9
9
10
10
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
11
11
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
12
+
12
13
"""
13
14
# template for the changelog body
14
15
# https://tera.netlify.app/docs/#introduction
15
16
body = """
16
17
{% if version %}\
17
- ## [ {{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
18
+ ## {{ version }}
18
19
{% else %}\
19
20
## [unreleased]
20
21
{% endif %}\
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ echo "Prep for release $1..."
12
12
13
13
# update version
14
14
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
16
16
17
17
# generate changelog
18
- git cliff --tag " $1 " --prepend CHANGELOG.md
18
+ git cliff -l - -tag " $1 " --prepend CHANGELOG.md
19
19
20
20
git add -A && git commit -m " chore(release): prep for $1 "
21
21
git show
22
22
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 "
25
25
git tag -v " $1 "
26
26
echo " Done! (ready to 'git push' and 'git push --tags')"
You can’t perform that action at this time.
0 commit comments