Sha256: 5a29c0631109d81f96443b9b82ba714c13e33c0dd6322dca982e8baf257926ae
Contents?: true
Size: 912 Bytes
Versions: 5
Compression:
Stored size: 912 Bytes
Contents
#!/bin/bash -e GEM_NAME="sidekiq-web_custom" if [ -z "$GITHUB_TOKEN" ]; then echo 'Environment variable GITHUB_TOKEN is not present' exit 1 fi if [ -z "$GITHUB_USER" ]; then echo 'Environment variable GITHUB_USER is not present' exit 1 fi VERSION=$(bin/rails runner 'Sidekiq::WebCustom.get_version') PACKAGE=${GEM_NAME}-${VERSION}.gem if [ $(git tag -l "$VERSION") ]; then echo "Pre existing version $VERSION, not tagging." exit 1 fi gem build ${GEM_NAME}.gemspec FILE=$(pwd)/${PACKAGE} echo "Finished building $FILE" # create tag in repo git tag -a $VERSION -m "$VERSION" git push https://${GITHUB_TOKEN}@github.com/${GITHUB_USER}/${GEM_NAME}.git $VERSION echo "Finished Tagging to git" # send artifacts to git SHA=$(git rev-parse HEAD) ./$GHRLOCATION -soft -t ${GITHUB_TOKEN} -u ${GITHUB_USER} -r ${GEM_NAME} -c ${SHA} ${VERSION} *.gem echo "Finished Pushing artificat to Git" rm ${FILE}
Version data entries
5 entries across 5 versions & 1 rubygems