Topo
Topo

Reputation: 5002

Automatic deploy of some branches with Travis CI

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.

Upvotes: 1

Views: 676

Answers (1)

Dominic Jodoin
Dominic Jodoin

Reputation: 2538

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!

Upvotes: 2

Related Questions