-
Notifications
You must be signed in to change notification settings - Fork 89
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
1 parent
9240293
commit 67f2364
Showing
2 changed files
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
CURRENT_VERSION=$(cat polemarch/__init__.py | grep __version__ | cut -d "=" -f2 | grep -oE "[0-9\.](\.dev[0-9]{1,2}){0,1}"| tr -d '\n') | ||
TAG=$(git tag -l $CURRENT_VERSION) | ||
|
||
if [ -z "${TAG}" ]; then | ||
echo "Creating new tag ${CURRENT_VERSION}."; | ||
# git tag $CURRENT_VERSION > /dev/null 2>&1; | ||
# git push origin $CURRENT_VERSION > /dev/null 2>&1; | ||
else | ||
echo "Current release ${CURRENT_VERSION} already exists. Update version to release." | ||
fi |