From 7b94181a0d0578692178f9f4e4d7503423f81c32 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Wed, 15 Jan 2020 15:26:29 +0000 Subject: [PATCH] deploy only on push --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 48f608a69..e736d322a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -113,7 +113,7 @@ deploy: - dvc*.exe skip_cleanup: true on: - condition: "$(./scripts/ci/deploy_condition.sh) && $(ls dvc*.rpm dvc*.deb dvc*.pkg dvc*.exe 2>&1)" + condition: "$(./scripts/ci/deploy_condition.sh) && $TRAVIS_EVENT_TYPE = push && $(ls dvc*.rpm dvc*.deb dvc*.pkg dvc*.exe 2>&1)" tags: true repo: iterative/dvc stage: build @@ -129,7 +129,7 @@ deploy: - dist/dvc*.tar.gz skip_cleanup: true on: - condition: "$(ls dist/dvc*.whl dist/dvc*.tar.gz 2>&1)" + condition: "$(ls dist/dvc*.whl dist/dvc*.tar.gz 2>&1) && $TRAVIS_EVENT_TYPE = push" tags: true repo: iterative/dvc stage: build @@ -139,6 +139,6 @@ deploy: skip_cleanup: true on: all_branches: true - condition: "$(ls dvc_*.snap 2>&1) && (($TRAVIS_BRANCH = master) || (-n $TRAVIS_TAG))" + condition: "$(ls dvc_*.snap 2>&1) && ($TRAVIS_BRANCH = master || -n $TRAVIS_TAG) && $TRAVIS_EVENT_TYPE = push" repo: iterative/dvc stage: build