From 760bc4454712bf181f20325e6658aa25dd15dbee Mon Sep 17 00:00:00 2001 From: Daniel Kang Date: Wed, 30 Jan 2019 00:52:55 -0800 Subject: [PATCH] add goreleaser deploy to travis --- .gitignore | 2 +- .goreleaser.yml | 12 ++++++++++++ .travis.yml | 7 +++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .goreleaser.yml diff --git a/.gitignore b/.gitignore index 6dd29b7..7773828 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -bin/ \ No newline at end of file +dist/ \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..57abb89 --- /dev/null +++ b/.goreleaser.yml @@ -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 diff --git a/.travis.yml b/.travis.yml index 295caf7..d545268 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file