Skip to content

Commit

Permalink
Merge pull request #103 from kayjan/github-workflow-release-notes
Browse files Browse the repository at this point in the history
Added: Automatic release notes generation
  • Loading branch information
kayjan authored Oct 16, 2023
2 parents 5920eb8 + 67e90c4 commit becd3dd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

permissions:
contents: read
contents: write

jobs:
deploy:
Expand All @@ -28,3 +28,17 @@ jobs:
HATCH_USER: ${{ secrets.HATCH_USER }}
HATCH_AUTH: ${{ secrets.HATCH_AUTH }}
run: hatch publish -u $HATCH_USER -a $HATCH_AUTH
- name: Set env var
id: set-env-var
run: |
VERSION_NUMBER=$(python -c "import bigtree; print(bigtree.__version__)")
echo "VERSION_NUMBER=${VERSION_NUMBER}" >> $GITHUB_OUTPUT
- name: Create release
uses: ncipollo/release-action@v1
env:
VERSION_NUMBER: ${{ steps.set-env-var.outputs.VERSION_NUMBER }}
with:
name: v${{ env.VERSION_NUMBER }}
tag: ${{ env.VERSION_NUMBER }}
artifacts: "*.zip,*.tar.gz"
makeLatest: true
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.13.2] - 2023-10-17
### Added
- Misc: Add automatic release notes into GitHub workflow.

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

[0.13.2]: https://github.com/kayjan/bigtree/compare/0.13.1...0.13.2
[0.13.1]: https://github.com/kayjan/bigtree/compare/0.13.0...0.13.1
[0.13.0]: https://github.com/kayjan/bigtree/compare/0.12.5...0.13.0
[0.12.5]: https://github.com/kayjan/bigtree/compare/0.12.4...0.12.5
Expand Down
2 changes: 1 addition & 1 deletion bigtree/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.13.1"
__version__ = "0.13.2"

from bigtree.binarytree.construct import list_to_binarytree
from bigtree.dag.construct import dataframe_to_dag, dict_to_dag, list_to_dag
Expand Down

0 comments on commit becd3dd

Please sign in to comment.