add goreleaser deploy to travis

This commit is contained in:
Daniel Kang 2019-01-30 00:52:55 -08:00
parent fdc52a0f83
commit 760bc44547
3 changed files with 20 additions and 1 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
bin/
dist/

12
.goreleaser.yml Normal file
View file

@ -0,0 +1,12 @@
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/tengo/main.go
goos:
- darwin
- linux
- windows
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc

View file

@ -8,3 +8,10 @@ install:
script:
- make test
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true