Skip to content

Commit ff98d1f

Browse files
authored
Admin: Ensure version is correct in tagged release
1 parent d50e415 commit ff98d1f

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ jobs:
3636
! git rev-parse ${{ env.VERSION }} || { echo "Ensure that no tag exists for ${{ env.VERSION }}" ; exit 1; }
3737
- name: Set version number
3838
run: sed -i "s/__version__ =.*/__version__ = '${{ env.VERSION }}'/g" freezegun/__init__.py
39+
- name: Increase patch version number
40+
run: |
41+
git config --local user.email "6058517+bblommers@users.noreply.github.com"
42+
git config --local user.name "FreezeGun Admin"
43+
git add freezegun/__init__.py
44+
git commit -m "Increase version number"
45+
git push
3946
- name: Build Python
4047
run: python -m build
4148
- name: Publish to PyPI
@@ -50,11 +57,3 @@ jobs:
5057
name: ${{ env.VERSION }}
5158
tag_name: ${{ env.VERSION }}
5259
files: dist/*
53-
- name: Increase patch version number
54-
if: ${{ inputs.current_release }}
55-
run: |
56-
git config --local user.email "6058517+bblommers@users.noreply.github.com"
57-
git config --local user.name "FreezeGun Admin"
58-
git add freezegun/__init__.py
59-
git commit -m "Increase version number"
60-
git push

0 commit comments

Comments
 (0)