Skip to content

Instantly share code, notes, and snippets.

@darrinholst
Created August 3, 2009 18:28
Show Gist options
  • Save darrinholst/160740 to your computer and use it in GitHub Desktop.
Save darrinholst/160740 to your computer and use it in GitHub Desktop.
git checkout master
git pull
if test -z "`git tag -l last-build`" -o -n "`git diff last-build HEAD`"; then
mvn --batch-mode release:prepare release:perform
git tag -f last-build
else
echo "no changes since last build, skipping release"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment