-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Admin: Ensure version is correct in tagged release
- Loading branch information
Showing
1 changed file
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" | ||
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 | ||
|
@@ -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 "[email protected]" | ||
git config --local user.name "FreezeGun Admin" | ||
git add freezegun/__init__.py | ||
git commit -m "Increase version number" | ||
git push |