Only deploy to heroku if build was successful