Skip to content

Commit

Permalink
Make Travis build github releases on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
zellyn committed Nov 14, 2016
1 parent f57c3a0 commit 6d35285
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
./diskii
release
14 changes: 12 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
language: go

go:
- 1.7
- 1.7
deploy:
provider: releases
api_key:
secure: I9FCgIU367GQ16uqK0+qpE1QrR857RMFUt+sRjoZ0ULkSAfTZsRHyjDYWKp0NF6d1+CRsJZGVOdTXckDpJc2nRHownMCiG8lnQtz3hd4BZ+5tDQwjtjBEic/tyVdcnlaxTF/ZjB6LdUsB9veSwOvSfv/LulkUOfwYHdFypXh7c79ARYV9Y9UH1YE3DmklzIhosAywXKyn1cjKrYuFDXUxv53QhMPKnEHYwjM8VFTubuxX95B2nYDSfs8PFStnOGCAS/kKINPfQbWLO4v8mimBGebRtwicnYky8MlqwxB08EmnWNvpt/0rhc0oudm44RwxrBO2oJ28DHhiM+qzWCOBWgHrQmVtZBUBLxoVcpjpKzEfP/ZNz10yCbWhDHJqB6xV+i7wu4I+2N/uIB9YaMd3cL+WTLo4kwUiAhNgJysCA40qySvZ0ik08zFgRbjy48TAjcqH0QuK4Gjv5ORqG59Ga/NVyPwsLJgMTUiu3xb7iKPYX9wyjPttWV5/dmwLlT7FVlHRuWGODviGtMELyCdaIO6LpLgAK3cMfddD3HKAeaDmrocT7GempXZEgO4v3aVXz0EMuBCIuwfnUcBRBug6k+WZzHk/SU+7EocpJv+RXVAzbJHM4d/jmP3ma+84dk/NU6LGpDbbuyMZjTElvm51zXhDoEuftMlrLwp59NLcCw=
file:
- release/diskii-linux-amd64
- release/diskii-macos-amd64
- release/diskii-windows-amd64.exe
on:
repo: zellyn/diskii
tags: true
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# github release creation copied from instructions at:
# https://loads.pickle.me.uk/2015/08/22/easy-peasy-github-releases-for-go-projects-using-travis/
# https://web.archive.org/web/20161114025928/https://loads.pickle.me.uk/2015/08/22/easy-peasy-github-releases-for-go-projects-using-travis/

package = github.com/zellyn/diskii

.PHONY: release

release:
mkdir -p release
GOOS=linux GOARCH=amd64 go build -o release/diskii-linux-amd64 $(package)
GOOS=darwin GOARCH=amd64 go build -o release/diskii-macos-amd64 $(package)
GOOS=windows GOARCH=amd64 go build -o release/diskii-windows-amd64.exe $(package)

0 comments on commit 6d35285

Please sign in to comment.