Sha256: 1326e39dd3fc4f78fe536513332582407ce2ee4215f2c464c04ca5caf850fe11

Contents?: true

Size: 821 Bytes

Versions: 13

Compression:

Stored size: 821 Bytes

Contents

#!/bin/bash

echo -e "---\n:rubygems_api_key: $GEM_API_KEY" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials

cd lf-git-version
build_version="$(cat semver-version/version)"
built_gem="pkg/license_finder-$build_version.gem"

git config --global user.email $GIT_EMAIL
git config --global user.name $GIT_USERNAME

git config --global push.default simple

git checkout master

mkdir ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
eval "$(ssh-agent -s)"
echo "$GIT_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-add -k ~/.ssh/id_rsa

if [ -z "$(gem fetch license_finder -v $build_version 2>&1 | grep ERROR)" ]; then
  echo "LicenseFinder-$build_version already exists on Rubygems"
else
  rake release
fi

export EXIT_STATUS=$?
kill $(ps aux | grep ssh-agent | head -n 1 | awk '{print $2}')
exit $EXIT_STATUS

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
license_finder-6.1.2 ci/scripts/pushscript.sh
license_finder-6.1.0 ci/scripts/pushscript.sh
license_finder-6.0.0 ci/scripts/pushscript.sh
license_finder-5.11.1 ci/scripts/pushscript.sh
license_finder-5.11.0 ci/scripts/pushscript.sh
license_finder-5.10.2 ci/scripts/pushscript.sh
license_finder-5.10.1 ci/scripts/pushscript.sh
license_finder-5.10.0 ci/scripts/pushscript.sh
license_finder-5.9.2 ci/scripts/pushscript.sh
license_finder-5.9.1 ci/scripts/pushscript.sh
license_finder-5.9.0 ci/scripts/pushscript.sh
license_finder-5.8.0 ci/scripts/pushscript.sh
license_finder-5.7.1 ci/scripts/pushscript.sh