Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Commit

Permalink
Added release script
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed Jun 22, 2017
1 parent 63afe91 commit 7fdb91d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions release-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

set -e

if [ -z "$1" ]; then
echo "Usage: $0 v#.#.#"
exit 1
fi

read -r -p "Create a new tag for version $1, push it, and build a release? [y/N] " response
case "$response" in
[yY][eE][sS]|[yY])
echo "Creating release"
;;
*)
echo Aborted
exit 1
;;
esac

git tag $1
git push --tags
./build.sh

0 comments on commit 7fdb91d

Please sign in to comment.