Sha256: e07b565d77e313094a4479ace360413b53092ce8fc856a0d4d1012f0df183849

Contents?: true

Size: 663 Bytes

Versions: 12

Compression:

Stored size: 663 Bytes

Contents

#!/bin/bash

if output=$(git status --porcelain) && [ -z "$output" ]; then
  echo "Checking out master" && \
    git checkout master && \
    echo "Pulling latest from github" && \
    git pull origin master

  if output=$(git status --porcelain) && [ -z "$output" ]; then
    echo "Bumping version" && \
    bundle exec bump $1 && \
    echo "Pushing to github" && \
    git push && \
    echo "Building gem" && \
    bundle exec rake build && \
    echo "Releasing gem" && \
    bundle exec rake release
  else
    >&2 echo 'PLEASE COMMIT ALL CHANGES BEFORE RELEASING.'
    exit 1
  fi

else
  >&2 echo 'PLEASE COMMIT ALL CHANGES BEFORE RELEASING.'
  exit 1
fi

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
ledger_sync-1.4.4 release.sh
ledger_sync-1.4.2 release.sh
ledger_sync-1.4.1 release.sh
ledger_sync-1.4.0 release.sh
ledger_sync-1.3.5 release.sh
pd_ruby-0.2.3 release.sh
pd_ruby-0.2.2 release.sh
ledger_sync-1.3.4 release.sh
ledger_sync-1.3.3 release.sh
pd_ruby-0.2.0 release.sh
ledger_sync-1.3.2 release.sh
ledger_sync-1.3.1 release.sh