diff --git a/.travis.yml b/.travis.yml index 962e208bcc7..7a241bba764 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ script: - npm run-script node-tests after_success: - npm run-script production - - "./bin/bower-ember-data-build" + - "./bin/publish-builds" env: global: - BROCCOLI_ENV="production" diff --git a/bin/publish-builds b/bin/publish-builds new file mode 100755 index 00000000000..98eb397aa50 --- /dev/null +++ b/bin/publish-builds @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +echo -e "CURRENT_BRANCH: ${TRAVIS_BRANCH}\n" +echo -e "PULL_REQUEST: ${TRAVIS_PULL_REQUEST}\n" + +if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then + ./bin/publish-to-s3.js + ./bin/bower-ember-data-build +fi