echo "Setting up gem credentials..." set +x mkdir -p ~/.gem cat << EOF > ~/.gem/credentials --- :github: Bearer ${GITHUB_TOKEN} :rubygems_api_key: ${RUBYGEMS_API_KEY} EOF chmod 0600 ~/.gem/credentials set -x git config --global --add safe.directory "$(pwd)" work_directory="${WORKDIR:-.}" cd $work_directory echo "Installing dependencies..." bundle install > /dev/null echo "Running gem release task..." release_command="${RELEASE_COMMAND:-rake release}" $release_command