From 9fdf2172038566df1447e044f7ed1beab8be89a8 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Tue, 10 Jul 2018 17:58:00 +0300 Subject: [PATCH] Fix travis release condition Travis pulls tag as branch, so 'branch = master' is never true. Use same regexp as earlier build.sh did --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a38f507..1add3524 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: python python: - '2.7' sudo: false +conditions: v1 cache: directories: - "~/.npm" @@ -19,7 +20,7 @@ script: stages: - name: Test - name: Release - if: tag IS present AND branch = master + if: tag IS present AND tag =~ ^\d+\.\d+\.\d+$ jobs: include: - stage: Test @@ -42,7 +43,6 @@ deploy: skip_cleanup: true on: tags: true - branch: master repo: xoseperez/espurna condition: $TRAVIS_BUILD_STAGE_NAME = Release notifications: