-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
42 lines (36 loc) · 953 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
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- go test ./...
- python scripts/generateDefaultConfig.py
builds:
- mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X "main.version={{ .RawVersion }}" -X "main.prerelease={{ if .IsSnapshot }}snapshot.{{ .ShortCommit }}{{ else }}{{ .Prerelease }}{{ end }}"'
targets:
- linux_386
- linux_amd64
- linux_arm
- windows_386
- windows_amd64
- darwin_amd64
- freebsd_386
- freebsd_amd64
- freebsd_arm
- openbsd_386
- openbsd_amd64
archives:
- format: binary
name_template: 'tsc-ls_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: 'tsc-ls_{{ .Version }}_SHA256SUM'
algorithm: sha256
signs:
- args: [ '-u', '{{ .Env.PGP_USER_ID }}', '--output', '${signature}', '--detach-sign', '${artifact}' ]
artifacts: checksum
changelog:
skip: true