-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
.goreleaser.yml
148 lines (132 loc) · 3.09 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
project_name: focus
before:
hooks:
- go mod download
builds:
- id: windows
env:
- CGO_ENABLED=1
goos:
- windows
goarch:
- amd64
- arm64
main: ./cmd/focus
- id: linux
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
main: ./cmd/focus
archives:
- id: windows-only
builds:
- windows
files:
- LICENCE
- README.md
- CHANGELOG.md
format: zip
- id: default
builds:
- windows
- linux
files:
- LICENCE
- README.md
- CHANGELOG.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: 'master'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
- id: main_packages
vendor: '{{ .Env.REPO_OWNER }}'
homepage: '{{ .Env.REPO_WEBSITE }}'
maintainer: '{{ .Env.REPO_MAINTAINER }}'
description: '{{ .Env.REPO_DESCRIPTION }}'
license: MIT
formats:
- deb
- rpm
overrides:
deb:
dependencies:
- libasound2-dev
rpm:
dependencies:
- alsa-lib-devel
- id: other_packages
vendor: '{{ .Env.REPO_OWNER }}'
homepage: '{{ .Env.REPO_WEBSITE }}'
maintainer: '{{ .Env.REPO_MAINTAINER }}'
description: '{{ .Env.REPO_DESCRIPTION }}'
license: MIT
formats:
- apk
- termux.deb
- archlinux
dependencies:
- libasound2-dev
overrides:
archlinux:
dependencies:
- alsa-lib
publishers:
- name: fury.io
ids:
- main_packages
dir: '{{ dir .ArtifactPath }}'
cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_PUSH_TOKEN }}@push.fury.io/{{ .Env.FURY_USERNAME }}/
winget:
- publisher: '{{ .Env.REPO_OWNER }}'
license: MIT
copyright: '{{ .Env.REPO_AUTHOR_NAME }}'
homepage: '{{ .Env.REPO_WEBSITE }}'
short_description: '{{ .Env.REPO_DESCRIPTION }}'
repository:
owner: '{{ .Env.REPO_OWNER }}'
token: '{{ .Env.GORELEASER_GITHUB_TOKEN }}'
name: winget-pkgs
branch: '{{.ProjectName}}-{{.Version}}'
pull_request:
enabled: true
draft: false
base:
owner: microsoft
name: winget-pkgs
branch: master
scoops:
- ids:
- windows-only
url_template: 'https://github.com/ayoisaiah/focus/releases/download/{{ .Tag }}/{{ .ArtifactName }}'
repository:
owner: '{{ .Env.REPO_OWNER }}'
name: scoop-bucket
token: '{{ .Env.GORELEASER_GITHUB_TOKEN }}'
commit_author:
name: goreleaserbot
email: [email protected]
homepage: '{{ .Env.REPO_WEBSITE }}'
description: '{{ .Env.REPO_DESCRIPTION }}'
license: MIT
brews:
- repository:
owner: '{{ .Env.REPO_OWNER }}'
name: homebrew-tap
token: '{{ .Env.GORELEASER_GITHUB_TOKEN }}'
commit_author:
name: goreleaserbot
email: [email protected]
homepage: '{{ .Env.REPO_WEBSITE }}'
description: '{{ .Env.REPO_DESCRIPTION }}'
install: |-
bin.install "{{ with .Env.REPO_BINARY_NAME }}{{ . }}{{ else }}{{ .ProjectName }}{{ end }}"