Sha256: 16f6e48e422a3c6c28bd5d7d73cd9a3e03d11578942b5c66e9a49ab055faec00

Contents?: true

Size: 725 Bytes

Versions: 28

Compression:

Stored size: 725 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 main branch

(git branch | grep -q '* main') || {
	echo "Only release from the main 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 main &&
	git push origin "$tag" &&
	gem push cloudcannon-jekyll-*.gem

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
cloudcannon-jekyll-4.1.0 script/release
cloudcannon-jekyll-4.0.7 script/release
cloudcannon-jekyll-4.0.6 script/release
cloudcannon-jekyll-4.0.5 script/release
cloudcannon-jekyll-4.0.4 script/release
cloudcannon-jekyll-4.0.3 script/release
cloudcannon-jekyll-4.0.2 script/release
cloudcannon-jekyll-4.0.1 script/release
cloudcannon-jekyll-4.0.0 script/release
cloudcannon-jekyll-3.2.4 script/release
cloudcannon-jekyll-3.2.3 script/release
cloudcannon-jekyll-3.2.2 script/release
cloudcannon-jekyll-3.2.1 script/release
cloudcannon-jekyll-3.2.0 script/release
cloudcannon-jekyll-3.1.0 script/release
cloudcannon-jekyll-3.0.2 script/release
cloudcannon-jekyll-3.0.1 script/release
cloudcannon-jekyll-3.0.0 script/release
cloudcannon-jekyll-2.3.4 script/release
cloudcannon-jekyll-2.3.3 script/release