Automatic deploy of some branches with Travis CI

678 views Asked by At

I now how to deploy and I know how to only build some branches, but is there any way to build all (or some number of) branches and only deploy the builds for the master branch?

Something like a deploy white list.

1

There are 1 answers

0
Dominic Jodoin On BEST ANSWER

I found in the docs that if you are using a deploy section to do your deployments, you can do conditional releases with the on: property and specify a branch:

deploy:
  ...
  on:
    branch: master

Here is the link to the documentation.

Hope this helps!