Skip to content

Commit e93206f

Browse files
committed
Updating to include an automatic version bump
1 parent 7bf3042 commit e93206f

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.bumpversion.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[bumpversion]
2+
current_version = 0.4.0
3+
commit = True
4+
tag = True
5+
6+
[bumpversion:file:pyproject.toml]

.github/workflows/python-publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,28 @@ on:
88
branches: [master]
99

1010
jobs:
11+
bump_version:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.10"
21+
22+
- name: Install bump2version
23+
run: pip install bump2version
24+
25+
- name: Bump version and commit changes
26+
run: |
27+
bump2version patch
28+
git push
29+
git push --tags
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
1133
build:
1234
name: Build distribution 📦
1335
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)