Sha256: e11a563ef380569229e001f718779781dbc42436d96d3a41dce5a06db522ddff
Contents?: true
Size: 751 Bytes
Versions: 4
Compression:
Stored size: 751 Bytes
Contents
#!/bin/sh # Tag and push a release. set -e # Make sure we're in the project root. cd $(dirname "$0")/.. # Build a new gem archive. rm -rf so_far_so_good-*.gem gem build -q so_far_so_good.gemspec # Make sure we're on the master branch. (git branch | grep -q '* master') || { echo "Only release from the master branch." exit 1 } # Figure out what version we're releasing. tag=v`ls so_far_so_good-*.gem | sed 's/^so_far_so_good-\(.*\)\.gem$/\1/'` # Make sure we haven't released this version before. git fetch -t origin (git tag -l | grep -q "$tag") && { echo "Whoops, there's already a '${tag}' tag." exit 1 } # Tag it and bag it. gem push so_far_so_good-*.gem && git tag "$tag" && git push origin master && git push origin "$tag"
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
so_far_so_good-1.2.0 | script/release |
so_far_so_good-1.1.1 | script/release |
so_far_so_good-1.1.0 | script/release |
so_far_so_good-1.0.1 | script/release |