-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
67 lines (60 loc) · 1.59 KB
/
.goreleaser.yml
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
version: 2
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -s -w
- -X github.com/arrow2nd/anct/cmd.version={{.Version}}
- -X github.com/arrow2nd/anct/api.builtInClientID={{.Env.CLIENT_ID}}
- -X github.com/arrow2nd/anct/api.builtInClientSecret={{.Env.CLIENT_SECRET}}
archives:
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
brews:
- name: anct
repository:
owner: arrow2nd
name: homebrew-tap
token: "{{ .Env.GORELEASER_GITHUB_TOKEN }}"
url_template: "https://github.com/arrow2nd/anct/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
homepage: "https://arrow2nd.com/works/anct"
description: "📺 Unofficial CLI Client of Annict"
license: "MIT"
test: |
system "#{bin}/anct -v"
install: |
bin.install "anct"
scoops:
- name: anct
repository:
name: scoop-bucket
owner: arrow2nd
token: "{{ .Env.GORELEASER_GITHUB_TOKEN }}"
url_template: "https://github.com/arrow2nd/anct/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
homepage: "https://arrow2nd.com/works/anct"
description: "📺 Unofficial CLI Client of Annict"
license: "MIT"
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"