Skip to content

Commit 976b840

Browse files
committed
Add goreleaser template file.
1 parent 1b3c58b commit 976b840

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.goreleaser.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
project_name: tmplgen
2+
release:
3+
github:
4+
owner: unders
5+
name: tmplgen
6+
brew:
7+
install: bin.install "tmplgen"
8+
builds:
9+
- goos:
10+
- linux
11+
- darwin
12+
goarch:
13+
- amd64
14+
- "386"
15+
goarm:
16+
- "6"
17+
main: .
18+
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
19+
binary: tmplgen
20+
archive:
21+
format: tar.gz
22+
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{
23+
.Arm }}{{ end }}'
24+
files:
25+
- licence*
26+
- LICENCE*
27+
- license*
28+
- LICENSE*
29+
- readme*
30+
- README*
31+
- changelog*
32+
- CHANGELOG*
33+
snapshot:
34+
name_template: SNAPSHOT-{{ .Commit }}
35+
checksum:
36+
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'

0 commit comments

Comments
 (0)