Skip to content

Commit bc97512

Browse files
committed
Create github release uisng travis, goreleaser
1 parent 9f979d4 commit bc97512

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#Output
55
out/
6+
dist/
67

78
# user configs
89
config.yaml

.goreleaser.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
builds:
2+
- goos:
3+
- darwin
4+
- linux
5+
- windows
6+
goarch:
7+
- amd64
8+
archive:
9+
replacements:
10+
darwin: Darwin
11+
linux: Linux
12+
windows: Windows
13+
amd64: x86_64
14+
checksum:
15+
name_template: "checksums.txt"
16+
snapshot:
17+
name_template: "{{ .Tag }}-next"
18+
changelog:
19+
sort: asc
20+
release:
21+
draft: true

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: go
22
go:
3-
- "1.11.x"
3+
- "1.11.x"
44
- master
55

66
env:
@@ -9,3 +9,11 @@ env:
99
install: make setup modules
1010

1111
script: make tests tests-cover-html build
12+
13+
deploy:
14+
- provider: script
15+
skip_cleanup: true
16+
script: curl -sL https://git.io/goreleaser | bash
17+
on:
18+
tags: true
19+
condition: $TRAVIS_OS_NAME = linux

0 commit comments

Comments
 (0)