Sha256: c503feb25f7edb3c3f6a39792f01175a6588d4d59e115747c5649d325602c114

Contents?: true

Size: 697 Bytes

Versions: 17

Compression:

Stored size: 697 Bytes

Contents

#!/bin/bash -e

VERSION=$1

if [ -z "$VERSION" ]; then
  echo "Usage: ./scripts/publish.sh <version>"
  exit 1
fi

bundle config unset deployment

bundle exec bump set "${VERSION}" --no-commit --no-bundle
git diff

echo "Building..."
bundle exec rake build

# create a temporary commit, since it's not possible to
# release with a dirty working directory
TAG="v${VERSION}"
echo "Creating temporary commit and tag (${TAG})..."
git add .
git commit --no-verify -m "tmp commit for ruby release"
git tag "${TAG}"

echo "Releasing..."
bundle exec rake release -v || (git tag -d "${TAG}" ; git reset --soft HEAD~1 ; exit 1)
git tag -d "${TAG}"
git reset --soft HEAD~1

echo "api-client-ruby published!"

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
stigg-api-client-0.457.0 scripts/publish.sh
stigg-api-client-0.456.1 scripts/publish.sh
stigg-api-client-0.456.0 scripts/publish.sh
stigg-api-client-0.455.1 scripts/publish.sh
stigg-api-client-0.448.0 scripts/publish.sh
stigg-api-client-0.446.0 scripts/publish.sh
stigg-api-client-0.445.2 scripts/publish.sh
stigg-api-client-0.445.0 scripts/publish.sh
stigg-api-client-0.444.0 scripts/publish.sh
stigg-api-client-0.442.2 scripts/publish.sh
stigg-api-client-0.442.1 scripts/publish.sh
stigg-api-client-0.442.0 scripts/publish.sh
stigg-api-client-0.441.0 scripts/publish.sh
stigg-api-client-0.439.0 scripts/publish.sh
stigg-api-client-0.431.0 scripts/publish.sh
stigg-api-client-0.429.1 scripts/publish.sh
stigg-api-client-0.429.0 scripts/publish.sh