Skip to content

Commit

Permalink
github: generate changelog on release
Browse files Browse the repository at this point in the history
  • Loading branch information
cdump committed Oct 17, 2020
1 parent 617f815 commit e7b9694
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
poetry build
echo ::set-output name=wheel_name::investments-${GITHUB_REF#refs/tags/}-py3-none-any.whl
- name: Generate Release Notes
run: |
echo '## Changes since previous release:' > changelog.md
git log --oneline $(git describe --tags --abbrev=0 HEAD^)..HEAD --pretty=format:"- [%h](https://github.com/cdump/investments/commit/%H) %s" >> changelog.md
- name: Create Release
id: create_release
uses: actions/create-release@latest
Expand All @@ -45,6 +50,7 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
body_path: changelog.md

- name: Upload Release Asset
id: upload-release-asset
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "investments"
version = "0.1.21"
version = "0.1.22"
description = "Analysis of Interactive Brokers reports for tax reporting in Russia"
license = "MIT"
authors = ["Maxim Andreev <[email protected]>"]
Expand Down

0 comments on commit e7b9694

Please sign in to comment.