From bcb11e1e140c26246b4fc342088d241835d13391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szekeres=20Ba=CC=81lint?= Date: Sun, 1 Jul 2018 15:41:40 +0200 Subject: [PATCH] .travis.yml update --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d4351c3..c877996 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,9 +22,10 @@ before_deploy: - eval "$(ssh-agent -s)" - chmod 600 /tmp/deploy_rsa - ssh-add /tmp/deploy_rsa + - npm run build:prod deploy: - on: - branch: master provider: script script: ssh -q -l root nginxconfig.io "sudo -u www-data -H sh -c 'cd /var/www/nginxconfig.io; git reset --hard && git pull origin master && find . -type f -name '*.html' -exec sed -i -e \"s/COMMIT_HASH/$TRAVIS_COMMIT/\" {} \;'" + on: + branch: master