From 6a30280d0c4d4638e67624cf2da74a093ed0a88f Mon Sep 17 00:00:00 2001 From: Joshua Groves Date: Mon, 27 Aug 2018 21:09:56 -0600 Subject: [PATCH] Deploy when branch name matches the tag name --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a5e5501..eacfaf0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,7 +53,7 @@ script: - export PATH=$PATH:$HOME/deps/bin - make - if [[ $TRAVIS_RUST_VERSION == "nightly" ]]; then make debug release; fi - - if [[ $TRAVIS_RUST_VERSION != "nightly" && $TRAVIS_BRANCH == "master" && $TRAVIS_OS_NAME == "osx" ]]; then make package.zip && mv package.zip portability-$TRAVIS_OS_NAME.zip; fi + - if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_BRANCH == $TRAVIS_TAG && $TRAVIS_OS_NAME == "osx" ]]; then make package.zip && mv package.zip portability-$TRAVIS_OS_NAME.zip; fi deploy: provider: releases @@ -63,6 +63,5 @@ deploy: skip_cleanup: true on: tags: true - branch: master - condition: $TRAVIS_RUST_VERSION = "stable" && $TRAVIS_OS_NAME == "osx" + condition: $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_BRANCH == $TRAVIS_TAG && $TRAVIS_OS_NAME == "osx" skip_cleanup: true