From 1aa29e4a4fbea00fae0b3e6e9486a1086e3659d7 Mon Sep 17 00:00:00 2001 From: tritoch Date: Tue, 13 Jun 2017 11:43:31 -0500 Subject: [PATCH] Debug PR vs Push Travis --- deploy.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/deploy.sh b/deploy.sh index 34ba5fa0..f3a7ea71 100644 --- a/deploy.sh +++ b/deploy.sh @@ -6,10 +6,6 @@ TARGET_BRANCH="files" function doCompile { python main.py - # Push merge or push to our files repo, not pulls. - if [ "${ghToken:-false}" != "false" ]; then - pushBranch - fi } function pushBranch { @@ -67,4 +63,14 @@ cd .. rm -rf out/**/* || exit 0 # Run our compile script -doCompile +#doCompile + +# Push merge or push to our files repo, not pulls. +if [ "${ghToken:-false}" != "false" ]; then + echo This is a Push + doCompile + pushBranch +else + echo This is a PR + doCompile +fi