From b318eb40f78894a2f42843a486dd17f2229e1d3e Mon Sep 17 00:00:00 2001 From: KongQun Yang Date: Wed, 2 Mar 2016 10:07:41 -0800 Subject: [PATCH] [Travis CI] Upload release build binary to Github release automatically Change-Id: I23fa6d75db04e1649ba0fbf5191591ffa0038257 --- .travis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5043b4abf2..8dbe9d070d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,19 @@ script: - ( find out/${BUILD_TYPE} -name "*_*test" | while read i ; do $i || exit ; done ) - packager/app/test/packager_test.py -v --build_type ${BUILD_TYPE} +before_deploy: + - mv out/${BUILD_TYPE}/packager out/${BUILD_TYPE}/packager-${TRAVIS_OS_NAME} + +deploy: + provider: releases + api_key: + secure: PbhquzRnY1BkGkM/6LmVSZjhUd8jWnj77QjxAKA8REnFhbAuzqwDYuytRmUsBFMtgatUEgTuh/1duZaIl0yXGvRZdNeGk7BgtguUy6vraWObjjNUSlQ6Njm4y/hMgaUIOhA9I2b8gokWU1PA0sDJOF/FoZaAxFpKXcW4d8Z2C0s= + file: out/${BUILD_TYPE}/packager-${TRAVIS_OS_NAME} + skip_cleanup: true + on: + tags: true + condition: ${BUILD_TYPE} = Release + branches: only: - master