-
Notifications
You must be signed in to change notification settings - Fork 19
/
.goreleaser.yml
131 lines (122 loc) · 2.93 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
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
- go test
builds:
- id: up
binary: up
ldflags:
- -extldflags "-static" -s -w -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}}
env:
- CGO_ENABLED=0
goos:
- linux
- freebsd
- darwin
goarch:
- amd64
- arm64
- arm
- ppc64le
goarm:
- "7"
ignore:
- goos: freebsd
goarch: arm64
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: ppc64le
- goos: darwin
goarch: arm
- goos: darwin
goarch: ppc64le
- id: up-win
binary: up
ldflags:
- -extldflags "-static" -s -w -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}}
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
hooks:
post:
- upx -9 "{{ .Path }}"
archives:
- name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format: tar.xz
format_overrides:
- goos: windows
format: zip
wrap_in_directory: true
files:
- LICENSE.txt
- README.md
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}--checksums.txt"
release:
draft: false
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
nfpms:
- package_name: up
maintainer: jesusprubio <[email protected]>
homepage: https://github.com/jesusprubio/up
description: |
Troubleshoot problems with your Internet connection based on different protocols and well-known public servers.
license: MIT
formats:
- apk
- deb
- rpm
- archlinux
bindir: /usr/bin
dependencies:
- git
winget:
- name: up
publisher: jesusprubio
license: MIT
short_description: Internet connection troubleshooting tool
description: |
Troubleshoot problems with your Internet connection based on different protocols and well-known public servers.
homepage: https://github.com/jesusprubio/up
tags:
- networking
- troubleshooting
- utility
repository:
owner: jesusprubio
name: winget-pkgs
branch: main
token: "{{ .Env.GITHUB_TOKEN }}"
pull_request:
enabled: true
draft: false
base:
owner: microsoft
name: winget-pkgs
branch: main
brews:
- repository:
owner: jesusprubio
name: homebrew-tap
commit_author:
name: jesusprubio
email: [email protected]
homepage: https://github.com/jesusprubio/up
description: |
Troubleshoot problems with your Internet connection based on different protocols and well-known public servers.
license: MIT
test: |
system "#{bin}/up --version"
dependencies:
- git