Skip to content

Commit

Permalink
try to fix travis config to deploy only when building master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
euZebe committed Apr 8, 2018
1 parent e23cc72 commit b296d75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@ language: node_js
node_js: "node"

after_success:
- yarn deploy
on:
branch:
master
- ./deploy.sh
4 changes: 4 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
if [ "$TRAVIS_BRANCH" == "master" ]; then
yarn deploy
fi

0 comments on commit b296d75

Please sign in to comment.