Only publish ui when changes have been made

This commit is contained in:
Tom Gallacher 2017-01-06 12:41:48 +00:00
parent 8dc61bce40
commit a3a7622927

View File

@ -32,7 +32,7 @@ deployment:
branch: master
commands:
- ./bin/docker-login
- make -C ui publish | sed '/NPM_TOKEN/d'
- [[ $(git diff --name-only) == *'ui/'* ]] && make -C ui publish | sed '/NPM_TOKEN/d'
- make -j2 build | sed '/NPM_TOKEN/d'
- make -j2 push | sed '/NPM_TOKEN/d'
- ./bin/deploy