language: node_js node_js: - "8" os: - linux before_script: - yarn global add surge after_success: - yarn build-storybook - yarn build - | if [ ${TRAVIS_BRANCH} = "master" ]; then export NODE_ENV=production; else export NODE_ENV=development; fi - cd build_webpack/ && cp index.html 200.html && cd .. - chmod ugo+x ./config/deploy/deploy.sh - ./config/deploy/deploy.sh