Skip to content

Commit

Permalink
Create github release uisng travis, goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
arunvelsriram committed Nov 23, 2018
1 parent 9f979d4 commit bc97512
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#Output
out/
dist/

# user configs
config.yaml
21 changes: 21 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
builds:
- goos:
- darwin
- linux
- windows
goarch:
- amd64
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
release:
draft: true
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: go
go:
- "1.11.x"
- "1.11.x"
- master

env:
Expand All @@ -9,3 +9,11 @@ env:
install: make setup modules

script: make tests tests-cover-html build

deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux

0 comments on commit bc97512

Please sign in to comment.