Skip to content

Commit

Permalink
Merge pull request #3 from ManabuSeki/add-release-script
Browse files Browse the repository at this point in the history
Add release script
  • Loading branch information
ManabuSeki authored Sep 11, 2020
2 parents 88c6741 + 316c1aa commit e49d711
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e49d711

Please sign in to comment.