Join GitHub today
Trigger deployment on tag push not working #8518
I'm trying to understand how to use the deploy section to release my software on GitHub.
I've spent hours figuring out why Travis won't trigger when I push a tag in order to deploy, or why pushing some commits then a tag still shows "Skipping a deployment with the releases provider because this is not a tagged commit"
Here is what I do:
The build starts, tells me there is no tag (but Github shows my tag, so there is a tag).
What am I doing wrong?
I also tried pushing a tag only, it does not trigger the build.
I've noodled quite a bit with my tags (deleting them on the remote and locally, etc), not sure if that has any impact.
One extra question: if I have to push some commits and then push my tags, how does Travis know to stop the first build and start when the tags are pushed? I'm not sure I understand how to use this properly.
Thanks for any pointers.
(My repo is private, let me know if you need extra info on the commits)
Ok, long story short: RTFM.
A build can be triggered via simple tag push.
Solution: add a regexp to the branch.only array that matches the tags you want to build.
I know, it took me a while to go through different pages and patch the pieces together to realise my mistake.
There's a few gotchas here and there with Travis, but it's still worth the pain