New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trigger deployment on tag push not working #8518
Comments
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.
|
@ArtFlag thanks for your comment, however the FMs ain't so obvious. |
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 😉 |
Thanks for noting the solution, indeed it wasn't obvious. Cheers! |
@ArtFlag to be honest, moving to gitlab solved this and so many other problems for me. ihmo, its far superior as a product. |
Attempts deploy based on: travis-ci/travis-ci#8518
ref: travis-ci/travis-ci#8518 (comment)
Hi,
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:
git commit
some stuffgit tag -a v1.0 -m "v1"
git push
(to master)git push --tags
(to master too)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)
The text was updated successfully, but these errors were encountered: