-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
96 lines (89 loc) · 2.13 KB
/
Copy path.goreleaser.yaml
File metadata and controls
96 lines (89 loc) · 2.13 KB
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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
builds:
- id: exec
main: ./cmd/mygithub
binary: mygithub
env:
- CGO_ENABLED=0
ldflags:
- -s -w -extldflags "-static" -X "github.com/webhippie/mygithub/pkg/version.String={{.Version}}" -X "github.com/webhippie/mygithub/pkg/version.Revision={{.Commit}}" -X "github.com/webhippie/mygithub/pkg/version.Date={{.Date}}"
tags:
- netgo
goos:
- linux
- windows
- darwin
goarch:
- amd64
- "386"
- arm64
- arm
ignore:
- goos: darwin
goarch: "386"
- goos: windows
goarch: arm
archives:
- id: exec
ids:
- exec
name_template: "mygithub-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}"
format_overrides:
- goos: windows
formats:
- zip
files:
- LICENSE
- CHANGELOG.md
- src: cmd/mygithub/README.md
dst: README.md
nfpms:
- id: exec
ids:
- exec
package_name: mygithub
file_name_template: "mygithub-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}"
vendor: Webhippie
homepage: https://webhippie.github.io/mygithub/
maintainer: Thomas Boerger <thomas@webhippie.de>
description: |-
Some tiny GitHub client utilities for daily work
license: Apache 2.0
formats:
- deb
- rpm
signs:
- id: archives
signature: "${artifact}.asc"
cmd: gpg2
artifacts: archive
args:
- --batch
- --armor
- --local-user
- 552D1DF54CBEA471C570C816EA4B5799921648E8
- --output
- ${signature}
- --detach-sign
- ${artifact}
- id: packages
signature: "${artifact}.asc"
cmd: gpg2
artifacts: package
args:
- --batch
- --armor
- --local-user
- 552D1DF54CBEA471C570C816EA4B5799921648E8
- --output
- ${signature}
- --detach-sign
- ${artifact}
snapshot:
version_template: testing
changelog:
disable: true
checksum:
disable: false
split: true