We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64e5438 commit a14af06Copy full SHA for a14af06
1 file changed
.github/workflows/python-publish.yml
@@ -27,15 +27,12 @@ jobs:
27
pip install bump2version
28
29
- name: Bump version
30
+ id: bump_version
31
run: |
- bump2version patch --allow-dirty --list | grep new_version= | cut -d'=' -f2 > version.txt
32
+ VERSION=$(bump2version patch --allow-dirty --list | grep new_version= | cut -d'=' -f2)
33
+ echo "VERSION=$VERSION" >> $GITHUB_ENV
34
shell: bash
35
- - name: Get new version
- id: vars
36
- run: |
37
- echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
38
-
39
- name: Commit version bump
40
uses: stefanzweifel/git-auto-commit-action@v4
41
with:
@@ -46,7 +43,6 @@ jobs:
46
43
your_package/__init__.py # If version is specified here
47
44
48
45
- name: Create GitHub Release
49
- id: create_release
50
uses: softprops/action-gh-release@v1
51
52
tag_name: "v${{ env.VERSION }}"
0 commit comments