-
Notifications
You must be signed in to change notification settings - Fork 6
/
.goreleaser.yaml
70 lines (61 loc) · 1.26 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
64
65
66
67
68
69
70
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
project_name: lion
before:
hooks:
- go mod tidy
- go generate ./...
snapshot:
version_template: "{{ .Tag }}-next"
builds:
- id: lion
main: main.go
binary: lion
goos:
- linux
- darwin
- freebsd
- netbsd
goarch:
- amd64
- arm64
- mips64le
- ppc64le
- s390x
- riscv64
- loong64
env:
- CGO_ENABLED=0
ldflags:
- -w -s
- -X 'main.Buildstamp={{ .Date }}'
- -X 'main.Githash={{ .ShortCommit }}'
- -X 'main.Goversion={{ .Env.GOVERSION }}'
- -X 'main.Version={{ .Tag }}'
archives:
- format: tar.gz
wrap_in_directory: true
files:
- LICENSE
- README.md
- config_example.yml
- ui/dist/**
format_overrides:
- goos: windows
format: zip
name_template: "{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}{{- if .Arm }}v{{ .Arm }}{{ end }}"
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
release:
draft: true
mode: append
extra_files:
- glob: dist/*.tar.gz
- glob: dist/*.txt
name_template: "Release {{.Tag}}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"