From fdbcfc2cad2ce68f3ea1841c354bb6a6d8e09b85 Mon Sep 17 00:00:00 2001 From: Steve Gerbino Date: Wed, 23 Dec 2015 15:10:47 -0500 Subject: [PATCH] Trying to deploy from yet another example... --- .travis.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2dc1d83..ce97534 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,13 +37,21 @@ after_success: - if [ "$TRAVIS_OS_NAME" = "linux" ]; then cpack -G DEB -C ${CMAKE_BUILD_TYPE}; fi - if [ "$TRAVIS_OS_NAME" = "linux" ]; then cpack -G RPM -C ${CMAKE_BUILD_TYPE}; fi +before_deploy: + - export RELEASE_DEB_FILE=$(ls *.deb) + - export RELEASE_RPM_FILE=$(ls *.rpm) + - echo "Deploying $RELEASE_DEB_FILE and $RELEASE_RPM_FILE to GitHub releases" + deploy: provider: releases api-key: "$GITHUB_TOKEN" file: - - "*.deb" - - "*.rpm" + - "${RELEASE_DEB_FILE}" + - "${RELEASE_RPM_FILE}" skip_cleanup: true on: tags: true - condition: "$CMAKE_BUILD_TYPE=RELEASE && $TRAVIS_OS_NAME=linux && $CC=gcc" + condition: + - "$CMAKE_BUILD_TYPE == RELEASE" + - "$TRAVIS_OS_NAME == linux" + - "$CC == gcc"