Skip to content

Commit becd3dd

Browse files
authored
Merge pull request #103 from kayjan/github-workflow-release-notes
Added: Automatic release notes generation
2 parents 5920eb8 + 67e90c4 commit becd3dd

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- master
77

88
permissions:
9-
contents: read
9+
contents: write
1010

1111
jobs:
1212
deploy:
@@ -28,3 +28,17 @@ jobs:
2828
HATCH_USER: ${{ secrets.HATCH_USER }}
2929
HATCH_AUTH: ${{ secrets.HATCH_AUTH }}
3030
run: hatch publish -u $HATCH_USER -a $HATCH_AUTH
31+
- name: Set env var
32+
id: set-env-var
33+
run: |
34+
VERSION_NUMBER=$(python -c "import bigtree; print(bigtree.__version__)")
35+
echo "VERSION_NUMBER=${VERSION_NUMBER}" >> $GITHUB_OUTPUT
36+
- name: Create release
37+
uses: ncipollo/release-action@v1
38+
env:
39+
VERSION_NUMBER: ${{ steps.set-env-var.outputs.VERSION_NUMBER }}
40+
with:
41+
name: v${{ env.VERSION_NUMBER }}
42+
tag: ${{ env.VERSION_NUMBER }}
43+
artifacts: "*.zip,*.tar.gz"
44+
makeLatest: true

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.13.2] - 2023-10-17
8+
### Added
9+
- Misc: Add automatic release notes into GitHub workflow.
10+
711
## [0.13.1] - 2023-10-15
812
### Added
913
- Misc: Add automatic comment on code coverage to pull requests into GitHub workflow.
@@ -346,6 +350,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
346350
- Utility Iterator: Tree traversal methods.
347351
- Workflow To Do App: Tree use case with to-do list implementation.
348352

353+
[0.13.2]: https://github.com/kayjan/bigtree/compare/0.13.1...0.13.2
349354
[0.13.1]: https://github.com/kayjan/bigtree/compare/0.13.0...0.13.1
350355
[0.13.0]: https://github.com/kayjan/bigtree/compare/0.12.5...0.13.0
351356
[0.12.5]: https://github.com/kayjan/bigtree/compare/0.12.4...0.12.5

bigtree/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.13.1"
1+
__version__ = "0.13.2"
22

33
from bigtree.binarytree.construct import list_to_binarytree
44
from bigtree.dag.construct import dataframe_to_dag, dict_to_dag, list_to_dag

0 commit comments

Comments
 (0)