diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..7c44d5a --- /dev/null +++ b/release.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -uex + +CURRENT=$(cd "$(dirname "$0")" && pwd) +VERSION=$1 +MAJOR=$(echo "$VERSION" | cut -d. -f1) +MINOR=$(echo "$VERSION" | cut -d. -f2) +PATCH=$(echo "$VERSION" | cut -d. -f3) + +git commit -m "bump up v$MAJOR.$MINOR.$PATCH" +git tag "v$MAJOR.$MINOR.$PATCH" +git push --tags