-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.goreleaser.yaml
63 lines (55 loc) · 1.3 KB
/
.goreleaser.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
release:
draft: true
prerelease: auto
before:
hooks:
- scripts/ver-is-up2date.sh
builds:
- main: cmd/baur/main.go
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- "-X github.com/simplesurance/baur/v5/internal/version.GitCommit={{ .FullCommit }}"
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
archives:
- format: tar.xz
name_template: "{{ .ProjectName }}-{{ .Os }}_{{ .Arch }}-{{ .Version }}"
format_overrides:
- goos: windows
format: zip
files:
# Do not include README.md and LICENCE file in archive
# (https://goreleaser-git-revert-1958-snapshot-auto.goreleaser.vercel.app/customization/archive/#packaging-only-the-binaries):
- none*
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
algorithm: sha256
signs:
- artifacts: checksum
args:
- "--local-user"
- "0xC8B381683DBCEDFE"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
snapshot:
name_template: "{{ incpatch .Version }}-dev"
changelog:
sort: asc
filters:
exclude:
- '^README::'
- '^tests:'