Skip to content

Commit

Permalink
Add push-tag script
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Aug 15, 2018
1 parent 3f0f5d5 commit c2592f4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bin/push-tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -e

# Insist repository is clean
git diff-index --quiet HEAD

git checkout $1
git pull origin $1
version=$(grep "__version__ = " murmurhash/about.py)
version=${version/__version__ = }
version=${version/\'/}
version=${version/\'/}
git tag "v$version"
git push origin --tags

0 comments on commit c2592f4

Please sign in to comment.