From 603fce755938d88fb61a67ed51bb137b5bf2552f Mon Sep 17 00:00:00 2001 From: Kevin van Zonneveld Date: Tue, 29 Mar 2016 19:41:44 +0200 Subject: [PATCH] Now that Frey deploys via Travis are working, only do it on tags, and after release --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b8fccc2..c92a4b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,8 +29,6 @@ before_deploy: - go get github.com/laher/goxc - goxc -t -bc="linux darwin windows" - goxc -d=./ -wd=./cmd/tusd -bc="linux darwin windows" -build-ldflags="-X main.VersionName=$TRAVIS_TAG -X main.GitCommit=$TRAVIS_COMMIT -X 'main.BuildDate=$(date --utc)'" -- .infra/scripts/rebuild-env.sh -- if [ "${TRAVIS_PULL_REQUEST}" == "false" ] && [ "${TRAVIS_BRANCH}" == "master" ]; then (make frey && frey setup --force-yes --projectDir .infra); else echo "Skipping deploy fornon-master/PRs"; fi deploy: provider: releases api_key: @@ -48,6 +46,9 @@ deploy: - snapshot/tusd_windows_amd64.zip skip_cleanup: true on: - # tags: true + tags: true go: 1.5 repo: tus/tusd +after_deploy: +- .infra/scripts/rebuild-env.sh +- if [ "${TRAVIS_PULL_REQUEST}" == "false" ] && [ "${TRAVIS_BRANCH}" == "master" ]; then (make frey && frey setup --force-yes --projectDir .infra); else echo "Skipping deploy for non-master/PRs"; fi