-
Notifications
You must be signed in to change notification settings - Fork 108
/
.goreleaser.yml
95 lines (75 loc) · 1.6 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
project_name: apidoc
release:
github:
owner: caixw
name: apidoc
name_template: '{{.Tag}}'
builds:
- id: apidoc
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
main: ./cmd/apidoc
binary: apidoc
flags:
- -trimpath
ldflags:
- -s -w -X github.com/caixw/apidoc/v7/core.metadata={{time "20060102"}}.{{.Commit}} -X github.com/caixw/apidoc/v7/core.mainVersion={{.Tag}}
env:
- CGO_ENABLED=0
brews:
- tap:
owner: caixw
name: homebrew-brew
url_template: "https://github.com/caixw/apidoc/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: goreleaserbot
email: [email protected]
folder: Formula
homepage: "https://apidoc.tools"
description: RESTful API 文档生成工具
license: MIT
dockers:
-
ids: ['apidoc']
goos: linux
goarch: amd64
dockerfile: Dockerfile
image_templates:
- "docker.io/caixw/apidoc:{{ .Tag }}"
- "docker.io/caixw/apidoc:v{{ .Major }}"
- "docker.io/caixw/apidoc:v{{ .Major }}.{{ .Minor }}"
- "docker.io/caixw/apidoc:latest"
- "ghcr.io/caixw/apidoc:{{ .Tag }}"
- "ghcr.io/caixw/apidoc:v{{ .Major }}"
- "ghcr.io/caixw/apidoc:v{{ .Major }}.{{ .Minor }}"
- "ghcr.io/caixw/apidoc:latest"
archives:
- builds:
- apidoc
replacements:
darwin: macOS
format_overrides:
- goos: windows
format: zip
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
checksum:
name_template: checksums.txt
algorithm: sha256
changelog:
skip: true