Skip to content

Commit

Permalink
Add release script (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Oct 9, 2020
1 parent d4c6e26 commit 2563b91
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions bin/release
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

BUMP="minor"
MESSAGE="$(git log --oneline --format=%B -n 1 HEAD | head -n 1)"

while [[ $# -gt 0 ]]
do
case "$1" in
-b|--bump)
BUMP="$2"
shift
shift
;;
-m|--message)
MESSAGE="$2"
shift
shift
;;
*)
shift
;;
esac
done

nimble install -Y bump
bump --v --$BUMP $MESSAGE

0 comments on commit 2563b91

Please sign in to comment.