Skip to content

Commit

Permalink
Switch deploy script to only run deploys on cron.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mornix committed Jun 4, 2019
1 parent f7f0bac commit e23e0eb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions code/scripts/deploy.bash
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
SOURCE_BRANCH="con_dep"
SOURCE_BRANCH="master"
DEPLOY_BRANCH="gh-pages"
SOURCE_BRANCH="con_dep"
DEPLOY_FOLDER="deploy/"
BUILD_NUMBER_FILE=".build-num"
COMMIT_HASH_FILE=".commit-hash"

if [ "$TRAVIS_EVENT_TYPE" != "push" ]; then
echo "Deployment only occurs for push builds."
if [[ "$TRAVIS_EVENT_TYPE" != "cron" && "$TRAVIS_EVENT_TYPE" != "api" ]]; then
echo "Deployment only occurs for cron (or api -- manually run) builds."
exit 0
fi

Expand Down

0 comments on commit e23e0eb

Please sign in to comment.