Don't deploy if we're on master
continuous-integration/laminar-elessar Build 34 succeeded in 52 seconds . Details

This commit is contained in:
Starbeamrainbowlabs 2019-03-28 23:00:05 +00:00
parent c9d2f1b939
commit dced63f02c
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 7 additions and 1 deletions

8
build
View File

@ -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
}