Skip to content

Commit e7b9694

Browse files
committed
github: generate changelog on release
1 parent 617f815 commit e7b9694

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
poetry build
3636
echo ::set-output name=wheel_name::investments-${GITHUB_REF#refs/tags/}-py3-none-any.whl
3737
38+
- name: Generate Release Notes
39+
run: |
40+
echo '## Changes since previous release:' > changelog.md
41+
git log --oneline $(git describe --tags --abbrev=0 HEAD^)..HEAD --pretty=format:"- [%h](https://github.com/cdump/investments/commit/%H) %s" >> changelog.md
42+
3843
- name: Create Release
3944
id: create_release
4045
uses: actions/create-release@latest
@@ -45,6 +50,7 @@ jobs:
4550
release_name: Release ${{ github.ref }}
4651
draft: false
4752
prerelease: false
53+
body_path: changelog.md
4854

4955
- name: Upload Release Asset
5056
id: upload-release-asset

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "investments"
3-
version = "0.1.21"
3+
version = "0.1.22"
44
description = "Analysis of Interactive Brokers reports for tax reporting in Russia"
55
license = "MIT"
66
authors = ["Maxim Andreev <[email protected]>"]

0 commit comments

Comments
 (0)