Don't deploy if we're on master
All checks were successful
continuous-integration/laminar-elessar Build 34 succeeded in 52 seconds .
All checks were successful
continuous-integration/laminar-elessar Build 34 succeeded in 52 seconds .
This commit is contained in:
parent
c9d2f1b939
commit
dced63f02c
1 changed files with 7 additions and 1 deletions
8
build
8
build
|
@ -193,7 +193,13 @@ task_ci() {
|
||||||
task_end 0;
|
task_end 0;
|
||||||
|
|
||||||
# FUTURE: We'll (eventually) want to call the package task here too
|
# 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue