From c2592f4fb10f5c3f1374cd754196393987aacba1 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 15 Aug 2018 17:47:02 +0200 Subject: [PATCH] Add push-tag script --- bin/push-tag.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/push-tag.sh diff --git a/bin/push-tag.sh b/bin/push-tag.sh new file mode 100755 index 0000000..eb9638f --- /dev/null +++ b/bin/push-tag.sh @@ -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