-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
.goreleaser.yml
149 lines (141 loc) · 3.65 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
149
version: 2
project_name: f2
before:
hooks:
- go mod download
builds:
- id: binary_archives
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- 386
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
main: ./cmd/f2
archives:
- files:
- LICENCE
- README.md
- CHANGELOG.md
- scripts/completions/*
format_overrides:
- goos: windows
format: zip
checksum:
name_template: checksums.txt
snapshot:
version_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
recommends:
- exiftool
contents:
- src: scripts/completions/f2.bash
dst: /usr/share/bash-completion/completions/f2
file_info:
mode: 0644
- src: scripts/completions/f2.fish
dst: /usr/share/fish/vendor_completions.d/f2.fish
file_info:
mode: 0644
- src: scripts/completions/f2.zsh
dst: /usr/share/zsh/vendor-completions/_f2
file_info:
mode: 0644
- 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
recommends:
- exiftool
contents:
- src: scripts/completions/f2.bash
dst: /usr/share/bash-completion/completions/f2
file_info:
mode: 0644
- src: scripts/completions/f2.fish
dst: /usr/share/fish/vendor_completions.d/f2.fish
file_info:
mode: 0644
- src: scripts/completions/f2.zsh
dst: /usr/share/zsh/vendor-completions/_f2
file_info:
mode: 0644
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:
- url_template: https://github.com/ayoisaiah/f2/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 }}"
dependencies:
- name: exiftool
type: optional