Skip to content

Commit

Permalink
Admin: Ensure version is correct in tagged release
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers authored Dec 4, 2023
1 parent d50e415 commit ff98d1f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ jobs:
! git rev-parse ${{ env.VERSION }} || { echo "Ensure that no tag exists for ${{ env.VERSION }}" ; exit 1; }
- name: Set version number
run: sed -i "s/__version__ =.*/__version__ = '${{ env.VERSION }}'/g" freezegun/__init__.py
- name: Increase patch version number
run: |
git config --local user.email "6058517+bblommers@users.noreply.github.com"
git config --local user.name "FreezeGun Admin"
git add freezegun/__init__.py
git commit -m "Increase version number"
git push
- name: Build Python
run: python -m build
- name: Publish to PyPI
Expand All @@ -50,11 +57,3 @@ jobs:
name: ${{ env.VERSION }}
tag_name: ${{ env.VERSION }}
files: dist/*
- name: Increase patch version number
if: ${{ inputs.current_release }}
run: |
git config --local user.email "6058517+bblommers@users.noreply.github.com"
git config --local user.name "FreezeGun Admin"
git add freezegun/__init__.py
git commit -m "Increase version number"
git push

0 comments on commit ff98d1f

Please sign in to comment.