-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathgoreleaser.yaml
More file actions
46 lines (40 loc) · 1016 Bytes
/
goreleaser.yaml
File metadata and controls
46 lines (40 loc) · 1016 Bytes
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
version: 2
project_name: squarecloud
before:
hooks:
- go mod tidy
- make completions
builds:
- main: ./cmd/squarecloud
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm, arm64]
goarm: ["7"]
ignore:
- goos: windows
goarch: arm
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/squarecloudofc/cli/internal/build.Version=v{{.Version}} -X github.com/squarecloudofc/cli/internal/build.Commit={{.Commit}} -X github.com/squarecloudofc/cli/internal/build.CommitDate={{ .CommitDate }}
archives:
- formats: [tar.gz]
name_template: >-
{{ .ProjectName }}_{{ .Os }}_{{- .Arch }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
formats: [zip]
files:
- completions/*
- LICENSE
- README.md
snapshot:
name_template: "{{ incpatch .Version }}-preview"
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"