-
Notifications
You must be signed in to change notification settings - Fork 13
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
m.kindritskiy
committed
Mar 25, 2024
1 parent
b0718c1
commit 56516f4
Showing
4 changed files
with
26 additions
and
32 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
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
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,25 @@ | ||
# /bin/env bash | ||
|
||
set -e | ||
USAGE="Usage: release.sh 0.1.1 'Release message'" | ||
|
||
VERSION=$1 | ||
MESSAGE=$2 | ||
|
||
if [ -z "${VERSION}" ]; then | ||
echo $USAGE | ||
echo "VERSION is not set" | ||
exit 1 | ||
fi | ||
if [ -z "${MESSAGE}" ]; then | ||
echo $USAGE | ||
echo "MESSAGE is not set" | ||
exit 1 | ||
fi | ||
echo "Releasing ${VERSION}" | ||
|
||
echo "__version__ = \"${VERSION}\"" > hiku/__init__.py | ||
git add hiku/__init__.py | ||
git commit -m "Release ${VERSION}" | ||
git tag -a v${VERSION} -m "${MESSAGE}" | ||
git push origin master --tags |
This file was deleted.
Oops, something went wrong.