-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
45 lines (45 loc) · 932 Bytes
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
project_name: transfer
snapshot:
name_template: "{{.Env.TRANSFER_VERSION}}"
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- main: cmd/transfer/main.go
binary: docker-transfer
env:
- CGO_ENABLED=0
ldflags: -s -w -X github.com/wolfulus/transfer/transfer/version.Version={{.Env.TRANSFER_VERSION}}
goos:
- linux
- windows
#- darwin
goarch:
- amd64
hooks:
post: ./scripts/compress
release:
disable: true
checksum:
name_template: "checksums.txt"
algorithm: sha256
archives:
- id: release
format: zip
format_overrides:
- goos: linux
format: tar.gz
- goos: darwin
format: tar.gz
name_template: "{{ .Binary }}-{{.Env.TRANSFER_VERSION}}-{{ .Os }}-{{ .Arch }}"
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*