From dced63f02cbde34868d876f13d118315cf114ba8 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 28 Mar 2019 23:00:05 +0000 Subject: [PATCH] Don't deploy if we're on master --- build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build b/build index f073673..b94762c 100755 --- a/build +++ b/build @@ -193,7 +193,13 @@ task_ci() { task_end 0; # FUTURE: We'll (eventually) want to call the package task here too - tasks_run build archive deploy; + tasks_run build archive; + + if [[ "$(git rev-parse --abbrev-ref HEAD)" == "master" ]]; then + tasks_run deploy; + else + echo "Not deploying, as this build wasn't on the master branch."; + fi }