-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yaml
36 lines (31 loc) · 957 Bytes
/
.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: squarecloud
before:
hooks:
- make completions
builds:
- main: ./cmd/squarecloud
goos: [linux, darwin, windows]
goarch: ["386", amd64, arm, arm64]
goarm: ["7"]
ignore:
- goos: windows
goarch: arm
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 }}
env:
- CGO_ENABLED=0
archives:
- format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
format: zip
files:
- completions/*
- LICENSE
- README.md
snapshot:
name_template: "{{ incpatch .Version }}-preview"
checksum:
name_template: "checksums.txt"