-
Notifications
You must be signed in to change notification settings - Fork 27
/
.goreleaser.yaml
63 lines (54 loc) · 1.68 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
59
60
61
62
63
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
ldflags:
- -X github.com/bitrise-io/envman/version.Version={{ .Version }}
- -X github.com/bitrise-io/envman/version.Commit={{ .FullCommit }}
- -X github.com/bitrise-io/envman/version.BuildNumber={{ index .Env "BITRISE_BUILD_NUMBER" }}
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 }}-
{{- title .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
release:
github:
owner: bitrise-io
name: envman
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:'