Why does Travis-ci not pick up my tag?

I’m having an issue with my travis build script.

My goal is to commit locally (git commit), tag the commit locally (git tag v1.2.3) and then push to github (git push origin --tags && git push). travis should then pick it up, see that it’s a tagged commit, and run a deploy script.

Unfortunately, travis seems to think that it’s not a tagged commit. Why?

On github it’s tagged, and I push the tag first. What can I do to get travis to see that it’s a tagged commit?

I can see the build for the v1.3.4 tag just fine in https://travis-ci.org/heca-project/heca/builds.

As you can see, two builds were created: one for the master branch (since you pushed a commit to it) and one for the tag.