-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
4 additions
and
13 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version to release' | ||
description: 'Version to release - make sure its same as setup.py' | ||
required: true | ||
changelog: | ||
description: 'Release changelog description' | ||
|
@@ -29,10 +29,6 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Update version in setup.py | ||
run: | | ||
sed -i "s/version=.*,/version='${{ github.event.inputs.version }}',/" setup.py | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
|
@@ -70,14 +66,9 @@ jobs: | |
fi | ||
- name: Create Git Tag | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add version.txt | ||
git commit -m "Bump version to ${{ github.event.inputs.version }}" | ||
git tag v${{ github.event.inputs.version }} | ||
git push origin main | ||
git push origin v${{ github.event.inputs.version }} | ||
uses: EndBug/latest-tag@latest | ||
with: | ||
tag-name: v${{ github.event.inputs.version }} | ||
|
||
- name: Create GitHub Release | ||
uses: softprops/action-gh-release@v1 | ||
|