From 316c1aacd4bc20807064b9af69ec788d565a549a Mon Sep 17 00:00:00 2001 From: Manabu Seki Date: Fri, 11 Sep 2020 14:56:52 +0900 Subject: [PATCH] Add release script --- release.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 release.sh 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