fix: Change release condition. (#679)

This commit is contained in:
Ludovic Fernandez 2018-10-17 22:34:51 +02:00 committed by GitHub
parent 771524140c
commit d775f2bcd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,7 @@ before_install:
- golangci-lint --version
install:
- echo "TRAVIS_GO_VERSION=$TRAVIS_GO_VERSION"
- dep status -v
deploy:
@ -30,7 +31,7 @@ deploy:
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_GO_VERSION =~ ^1\.11\.[0-9]+$
condition: $TRAVIS_GO_VERSION =~ ^1\.x$
- provider: releases
api_key: ${GITHUB_TOKEN}
@ -40,4 +41,4 @@ deploy:
file_glob: true
on:
tags: true
condition: $TRAVIS_GO_VERSION =~ ^1\.11\.[0-9]+$
condition: $TRAVIS_GO_VERSION =~ ^1\.x$