Sha256: a70bd2e8b7fab3354a8591705712917f5d588c9062f51cde62175c087faf6ba9

Contents?: true

Size: 733 Bytes

Versions: 32

Compression:

Stored size: 733 Bytes

Contents

#!/bin/sh

set -e

# Ensure we're in the project root

cd $(dirname "$0")/..

# Build the new gem

rm -rf cloudcannon-jekyll-*.gem
gem build -q cloudcannon-jekyll.gemspec

# Ensure 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 cloudcannon-jekyll-*.gem | sed 's/^cloudcannon-jekyll-\(.*\)\.gem$/\1/'`

# Ensure 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
}

# Push tag and upload new gem

git tag "$tag" &&
	git push origin master &&
	git push origin "$tag" &&
	gem push cloudcannon-jekyll-*.gem

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
cloudcannon-jekyll-1.6.1 script/release
cloudcannon-jekyll-0.4.0 script/release
cloudcannon-jekyll-1.6.0 script/release
cloudcannon-jekyll-1.5.7 script/release
cloudcannon-jekyll-1.5.6 script/release
cloudcannon-jekyll-1.5.5 script/release
cloudcannon-jekyll-0.3.4 script/release
cloudcannon-jekyll-1.5.4 script/release
cloudcannon-jekyll-0.3.3 script/release
cloudcannon-jekyll-0.3.2 script/release
cloudcannon-jekyll-1.5.3 script/release
cloudcannon-jekyll-1.5.2 script/release
cloudcannon-jekyll-0.3.1 script/release
cloudcannon-jekyll-0.3.0 script/release
cloudcannon-jekyll-1.5.0 script/release
cloudcannon-jekyll-1.4.3 script/release
cloudcannon-jekyll-1.4.2 script/release
cloudcannon-jekyll-1.4.1 script/release
cloudcannon-jekyll-1.4.0 script/release
cloudcannon-jekyll-0.2.1 script/release