faraday/script/release
2015-10-02 17:51:20 +02:00

15 lines
363 B
Bash
Executable File

#!/usr/bin/env bash
# Usage: script/release
# Build the package, tag a commit, push it to origin, and then release the
# package publicly.
set -e
version="$(script/package | grep Version: | awk '{print $2}')"
[ -n "$version" ] || exit 1
git commit -a -m "faraday $version"
git tag "v${version}"
git push origin "v${version}" HEAD
gem push pkg/*-${version}.gem