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