Skip to content

Commit da291f3

Browse files
committed
Remove deprecated archive.builds
1 parent 94c62b9 commit da291f3

File tree

1 file changed

+18
-34
lines changed

1 file changed

+18
-34
lines changed

.goreleaser.yaml

Lines changed: 18 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,46 @@
1+
---
12
version: 2
2-
33
project_name: tab-commit
4-
54
release:
65
github:
76
owner: devinjeon
87
name: tab-commit
9-
108
builds:
119
- id: tab-commit
1210
main: ./cmd
13-
goos:
14-
- linux
15-
- darwin
16-
- windows
17-
goarch:
18-
- amd64
19-
- arm64
20-
env:
21-
- CGO_ENABLED=0
22-
ldflags:
23-
- "-X main.version={{ .Tag }}"
11+
goos: [linux, darwin, windows]
12+
goarch: [amd64, arm64]
13+
env: [CGO_ENABLED=0]
14+
ldflags: ['-X main.version={{ .Tag }}']
2415
binary: tab-commit
25-
2616
archives:
2717
- id: tab-commit
28-
builds:
29-
- tab-commit
30-
files:
31-
- scripts/tab-commit-autocomplete.zsh
32-
formats:
33-
- tar.gz
18+
files: [scripts/*]
19+
formats: [tar.gz]
3420
format_overrides:
3521
- goos: windows
3622
formats:
3723
- zip
3824
# 'replacements:' is deprecated.
3925
# Use Go template logic within 'name_template' instead.
40-
name_template: '{{ .Binary }}_{{ .Tag }}_{{ .Os }}_{{ if eq .Arch "amd64" }}x86_64{{ else }}{{ .Arch }}{{ end }}'
41-
26+
name_template: '{{ .Binary }}_{{ .Tag }}_{{ .Os }}_{{ if eq .Arch "amd64" }}x86_64{{
27+
else }}{{ .Arch }}{{ end }}'
4228
checksum:
43-
name_template: "{{ .ProjectName }}_checksums.txt"
29+
name_template: '{{ .ProjectName }}_checksums.txt'
4430
algorithm: sha256
45-
46-
4731
brews:
32+
- name: tab-commit
4833
commit_author:
4934
name: Hyojun Jeon
5035
email: jeon@hyojun.me
51-
52-
description: "tab-commit is a simplest way to generate commit messages — just press `<Tab>` after `git commit -m`."
36+
description: tab-commit is a simplest way to generate commit messages — just press
37+
`<Tab>` after `git commit -m`.
5338
homepage: https://github.com/devinjeon/tab-commit
54-
55-
install: |
56-
bin.install "tab-commit"
57-
58-
# TODO: zsh_completion.install "scripts/tab-commit-autocomplete.zsh" => "_tab-commit"
59-
# TODO: bash_completion.install "scripts/tab-commit-autocomplete.bash" => "tab-commit"
39+
# TODO(devinjeon)
40+
# install: |
41+
# bin.install "tab-commit"
42+
# zsh_completion.install "scripts/tab-commit-completion.zsh" => "_tab-commit"
43+
# bash_completion.install "scripts/tab-commit-completion.bash" => "tab-commit"
6044
repository:
6145
owner: devinjeon
6246
name: tab-commit

0 commit comments

Comments
 (0)