Sha256: 423e0201c81fb9496f42330d10aca4bf234605726c855a87d1fe2bfe6a1c7370
Contents?: true
Size: 738 Bytes
Versions: 4
Compression:
Stored size: 738 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 dat-science-*.gem gem build -q dat-science.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 dat-science-*.gem | sed 's/^dat-science-\(.*\)\.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 dat-science-*.gem && git tag "$tag" && git push origin master && git push origin "$tag"
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dat-science-1.2.1 | script/release |
dat-science-1.2.0 | script/release |
dat-science-1.1.0 | script/release |
dat-science-1.0.0 | script/release |