Skip to content

Instantly share code, notes, and snippets.

@zurfyx
Last active November 2, 2017 09:02
Show Gist options
  • Save zurfyx/bd94eed79be7e2b9e30985b8cd50d2f1 to your computer and use it in GitHub Desktop.
Save zurfyx/bd94eed79be7e2b9e30985b8cd50d2f1 to your computer and use it in GitHub Desktop.
# Tag last commit as 'latest'.
if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
git config --global user.email "hi@travis-ci.org"
git config --global user.name "Sr. Travis"
git remote add release "https://${GH_TOKEN}@github.com/zurfyx/travis-android.git"
git push -d release latest
git tag -d latest
git tag -a "latest" -m "[Autogenerated] This is the latest version pushed to the master branch."
git push release --tags
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment