-
Notifications
You must be signed in to change notification settings - Fork 131
/
.goreleaser.yaml
88 lines (77 loc) · 2.11 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
ignore:
# We don't want to publish a linux-arm64 binary
- goos: linux
goarch: arm64
ldflags:
- -X github.com/bitrise-io/bitrise/version.VERSION={{ .Version }}
- -X github.com/bitrise-io/bitrise/version.Commit={{ .FullCommit }}
- -X github.com/bitrise-io/bitrise/version.BuildNumber={{ index .Env "BITRISE_BUILD_NUMBER" }}
archives:
# GitHub release should contain the raw binaries (no zip or tar.gz)
- format: binary
id: default
# Name format should match the curl install script
name_template: >-
{{ .ProjectName }}-
{{- title .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
- format: binary
id: s3
name_template: "{{ .ProjectName }}-cli-{{ .Os }}-{{ .Arch }}-v{{ .Tag }}"
blobs:
- provider: gs
bucket: bitrise-cli-releases-prod
folder: /{{ .Tag }}
ids:
- default
- provider: s3
bucket: bitrise-cli-releases-prod
region: us-east-1
endpoint: "{{ .Env.AWS_ENDPOINT_URL }}"
folder: /
ids:
- s3
release:
github:
owner: bitrise-io
name: bitrise
ids:
- default
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 }}
```
ℹ️ Apple Silicon: Please note by default `/usr/local/bin` does not exist 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:"