Skip to content

Instantly share code, notes, and snippets.

@pomber
Last active April 13, 2017 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pomber/3ba68bda63b37b934f4224446754b038 to your computer and use it in GitHub Desktop.
Save pomber/3ba68bda63b37b934f4224446754b038 to your computer and use it in GitHub Desktop.
Conditional deploy
deploy:
- provider: script
script: ./deploy-prod.sh
on:
all_branches: true
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+
- provider: script
script: ./deploy-test.sh
on:
branch: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment