mirror of
https://github.com/lostisland/faraday.git
synced 2025-11-10 00:08:01 -05:00
16 lines
384 B
Bash
Executable File
16 lines
384 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 --allow-empty -a -m "Release $version"
|
|
git tag "v$version"
|
|
git push origin
|
|
git push origin "v$version"
|
|
gem push pkg/*-${version}.gem
|