-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# Prompt for the new version | ||
read -p "Enter the new version: " version | ||
|
||
if [[ -z "$version" ]]; then | ||
echo "Version cannot be empty" | ||
exit 1 | ||
fi | ||
|
||
# Update version in setup.py | ||
sed -i '' "s/this_version='.*'/this_version='$version'/" setup.py | ||
|
||
# Add changes to git | ||
git add . | ||
|
||
# Commit changes | ||
git commit -m "RELEASE: $version" | ||
|
||
# Push changes | ||
git push | ||
|
||
# Tag the release | ||
git tag -a "$version" -m "RELEASE: $version" | ||
|
||
# Push tags | ||
git push --tags | ||
|
||
echo "Release $version pushed and tagged successfully." |
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