-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.goreleaser.yaml
58 lines (49 loc) · 1.47 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
before:
hooks:
- go mod tidy
builds:
- env:
# Required for the osxkeychain package (calls into C code)
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
- arm64
archives:
# GitHub release should contain the raw binaries (no zip or tar.gz)
- format: binary
# Name format should match the curl install script
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
replacements:
darwin: Darwin
amd64: x86_64
release:
github:
owner: bitrise-io
name: codesigndoc
draft: true
mode: replace
footer: |
### Install or upgrade
To install this version, run the following command (in a bash shell):
```bash
curl -fL https://github.com/bitrise-io/{{ .ProjectName }}/releases/download/{{ .Tag }}/{{ .ProjectName }}-"$(uname -s)"-"$(uname -m)" > /usr/local/bin/{{ .ProjectName }}
```
ℹ️ M1 machine: Please note by default `/usr/local/bin` does not exist on M1 machines and isn't encouraged by the community over `/opt/bin`. Use a custom folder path or use your own `bin` folder path. i.e `/opt/bin`
Then:
```
chmod +x /usr/local/bin/{{ .ProjectName }}
```
That's all, you're ready to call `{{ .ProjectName }}`!
checksum:
name_template: 'checksums.txt'
snapshot:
# Run `goreleaser release --snapshot` locally to create binaries without publishing and checks
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'