-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
54 lines (48 loc) · 1.11 KB
/
.goreleaser.yml
File metadata and controls
54 lines (48 loc) · 1.11 KB
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
version: 2
project_name: SBBuddy
# 1) Define your builds (one for Unix, one for Windows)
builds:
- id: swiss-unix
main: ./cmd/SBBuddy
binary: SBBuddy
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- id: swiss-windows
main: ./cmd/SBBuddy
binary: SBBuddy
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
- arm64
# 2) Archives: use `ids` instead of `builds`, and `formats` instead of `format`
archives:
- id: unix
ids:
- swiss-unix # <– replaces `builds:` :contentReference[oaicite:0]{index=0}
formats:
- tar.gz # <– replaces `format:` :contentReference[oaicite:1]{index=1}
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- install.sh
- id: windows
ids:
- swiss-windows
formats:
- zip
name_template: "{{ .ProjectName }}_v{{ .Version }}_windows_{{ .Arch }}"
files:
- install.ps1
# 3) GitHub release settings remain the same
release:
github:
owner: Riximus
name: SBBuddy