Hopefully fix builds

This commit is contained in:
Tom Gallacher 2017-01-06 14:47:36 +00:00
parent 057f074553
commit d54f8d4704
3 changed files with 9 additions and 9 deletions

View File

@ -1,8 +0,0 @@
#! /usr/bin/env bash
#
# Prelude
#
set -euo pipefail
[[ $(git diff --name-only) == *"$1"* ]]

8
bin/on-changes-publish-ui Executable file
View File

@ -0,0 +1,8 @@
#! /usr/bin/env bash
#
# Prelude
#
set -euo pipefail
[[ $(git diff --name-only) == *"ui/"* ]] && make -C ui publish | sed '/NPM_TOKEN/d'

View File

@ -32,7 +32,7 @@ deployment:
branch: master
commands:
- ./bin/docker-login
- ./bin/on-changes ui && make -C ui publish | sed '/NPM_TOKEN/d'
- ./bin/on-changes-publish-ui
- make -j2 build | sed '/NPM_TOKEN/d'
- make -j2 push | sed '/NPM_TOKEN/d'
- ./bin/deploy