Last active
November 2, 2017 09:02
-
-
Save zurfyx/bd94eed79be7e2b9e30985b8cd50d2f1 to your computer and use it in GitHub Desktop.
Android Travis CI test + deploy - https://medium.com/@zurfyx/android-travis-ci-with-autodeploy-api-26-efb6c1863628
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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