Added deployment on tags as it is required by Github.

Added deployment conditional to work around Travis issue 1675.