bin/publish_git in sidekiq-web_custom-0.3.0 vs bin/publish_git in sidekiq-web_custom-0.3.1
- old
+ new
@@ -15,11 +15,11 @@
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 0
+ exit 1
fi
gem build ${GEM_NAME}.gemspec
FILE=$(pwd)/${PACKAGE}
echo "Finished building $FILE"
@@ -30,9 +30,9 @@
echo "Finished Tagging to git"
# send artifacts to git
SHA=$(git rev-parse HEAD)
-./$GHRLOCATION -soft -t ${GITHUB_TOKEN} -u ${GITHUB_USER} -r timeoutable -c ${SHA} ${VERSION} *.gem
+./$GHRLOCATION -soft -t ${GITHUB_TOKEN} -u ${GITHUB_USER} -r ${GEM_NAME} -c ${SHA} ${VERSION} *.gem
echo "Finished Pushing artificat to Git"
-rm $
+rm ${FILE}