Skip to content

Commit

Permalink
deploy only on push
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jan 15, 2020
1 parent d603048 commit 7b94181
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 7b94181

Please sign in to comment.