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