after_success deploy step. Here again, follow Travis CI’s instructions on custom deployment. The after_success in your .travis.yml file should look like this:
Also, see My deploy failed with a git error referencing objects, trees, revisions or commits to understand why you need git fetch here.

