Skip to content

Commit

Permalink
Fixed bumpversion
Browse files Browse the repository at this point in the history
  • Loading branch information
rhengeveldbordex committed Jun 6, 2024
1 parent 186c8b4 commit 8576c89
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[bumpversion]
current_version = 0.0.1
commit = True
tag = True

[bumpversion:file:setup.py]

[bumpversion:file:your_package/__init__.py]
7 changes: 3 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,16 @@ jobs:
- name: Bump version
run: |
current_version=$(bump2version --dry-run --list minor | grep current_version | sed -r s,"^.*=",,)
new_version=$(bump2version --dry-run --list minor | grep new_version | sed -r s,"^.*=",,)
bump2version --new-version $new_version minor
bump2version --config-file .bumpversion.cfg --allow-dirty --verbose minor
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -am "Bump minor version [skip ci]"
git add .
git commit -m "Bump minor version [skip ci]"
git push
- name: Build package
Expand Down
1 change: 1 addition & 0 deletions transsmart_connector/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .transsmart_connector import TranssmartConnector

0 comments on commit 8576c89

Please sign in to comment.