From 4c5f075c6334104be2c1d3a0b628d6e53490f3f2 Mon Sep 17 00:00:00 2001 From: Ryan Liptak Date: Fri, 29 Mar 2019 03:35:27 -0700 Subject: [PATCH] Use travis to build/release Linux binaries Only does the deploy phase for tagged commits Contributes towards #200 --- .travis.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0efacdac..9c0adc9a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,3 +34,28 @@ notifications: on_success: change # options: [always|never|change] default: always on_failure: always # options: [always|never|change] default: always on_start: false # default: false + +jobs: + include: + - stage: deploy + if: tag IS present + os: linux + env: [] + script: + # fetch tags so that git describe works + - git fetch --unshallow + - make linux-build + services: + - docker + deploy: + provider: releases + api_key: $GITHUB_OAUTH_TOKEN + file: + - "luvi-regular-Linux_x86_64" + - "luvi-tiny-Linux_x86_64" + - "luvi-regular-Linux_i686" + - "luvi-tiny-Linux_i686" + overwrite: true + skip_cleanup: true + on: + tags: true