Sha256: 5e309858bf834f8517a53865244f7bb3b7dff6bec099ff381b00e011b8173def
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
#!/bin/sh LIB_NAME="rescue-dog" if [ $# -ne 1 ] then echo "invalid VERSION" exit 1 fi GEMSPEC="${LIB_NAME}.gemspec" PKG_FILE="${LIB_NAME}-$1.gem" echo "[RUN] gem install" bundle install echo "[RUN] rake" bundle exec rake if [ $? -eq 1 ] then exit 1 fi echo "[RUN] gem build ${GEMSPEC}" gem build ${GEMSPEC} if [ $? -eq 1 ] then exit 1 fi echo "[RUN] mv ${PKG_FILE} pkg/" mv ${PKG_FILE} ./pkg echo "[RUN] gem push pkg/${PKG_FILE}" gem push pkg/${PKG_FILE} echo "[RUN] git tag -a version-$1" git tag -a version-$1 -m "" git push --tags
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rescue-dog-0.2.1 | deploy_gem.sh |
rescue-dog-0.2.0 | deploy_gem.sh |