-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
36 lines (32 loc) · 1.01 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
project_name: syncup
before:
hooks:
- go mod tidy
builds:
- id: default
main: ./cmd/syncup
flags:
- -trimpath
ldflags:
- -s
- -w
- -X github.com/Aton-Kish/syncup/internal/syncup/registry.version={{ .Version }}
- -X github.com/Aton-Kish/syncup/internal/syncup/registry.gitCommit={{ .ShortCommit }}
- -X github.com/Aton-Kish/syncup/internal/syncup/registry.goVersion={{ .Env.GOVERSION }}
- -X github.com/Aton-Kish/syncup/internal/syncup/registry.goOS={{ .Os }}
- -X github.com/Aton-Kish/syncup/internal/syncup/registry.goArch={{ .Arch }}
- -X github.com/Aton-Kish/syncup/internal/syncup/registry.buildTime={{ .Date }}
env:
- CGO_ENABLED=0
archives:
- id: default
builds:
- default
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
files:
- src: docs
dst: .