Skip to content

Commit

Permalink
Use travis to build/release Linux binaries
Browse files Browse the repository at this point in the history
Only does the deploy phase for tagged commits

Contributes towards luvit#200
  • Loading branch information
squeek502 committed Mar 29, 2019
1 parent d104cb7 commit 4c5f075
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4c5f075

Please sign in to comment.