bin/gempush-if-changed in phonetics-3.0.1 vs bin/gempush-if-changed in phonetics-3.0.2
- old
+ new
@@ -8,8 +8,12 @@
git pull --tags
if git diff --name-only HEAD latest -- VERSION | egrep -q .; then
# The VERSION file changed since 'latest', build the gem and push
gem build *.gemspec
gem push *.gem
+
git tag -f latest HEAD
- git push origin latest
+ git tag -f "v$(cat VERSION)"
+
+ git push -f origin latest
+ git push --tags
fi