forked from profclems/glab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
130 lines (119 loc) · 2.94 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
project_name: glab
before:
hooks:
- go mod download
- go generate ./...
builds:
- main: ./cmd/glab
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{.Version}} -X main.build={{time "01/02/2006"}}
- <<: &build_defaults
binary: bin/glab
main: ./cmd/glab
id: macos
goos: [darwin]
goarch: [amd64]
- <<: *build_defaults
id: linux
goos: [linux]
goarch: [386, amd64]
- <<: *build_defaults
id: windows
goos: [windows]
goarch: [386, amd64]
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- id: nix
builds: [macos, linux]
<<: &archive_defaults
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: false
replacements:
darwin: macOS
linux: Linux
format: tar.gz
- id: windows
builds: [windows]
<<: *archive_defaults
wrap_in_directory: false
format: zip
scoop:
url_template: "http://github.com/profclems/glab/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# Repository to push the app manifest to.
bucket:
owner: profclems
name: scoop-glab
commit_author:
name: Clement Sam
email: [email protected]
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/profclems/glab"
description: "An open source gitlab cli tool"
license: MIT
persist:
- ".glab-cli"
- ".env"
brews:
- name: glab
ids:
- nix
description: "An open source GitLab CLI tool"
commit_author:
name: Clement Sam
email: [email protected]
folder: Formula
goarm: 6
tap:
owner: profclems
name: homebrew-tap
url_template: "http://github.com/profclems/glab/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# Packages your package depends on.
homepage: "https://github.com/profclems/glab"
dependencies:
- name: git
install: bin.install "bin/glab"
test: |
system "#{bin}/glab version"
nfpms:
-
id: foo
package_name: glab
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
# Build IDs for the builds you want to create NFPM packages for.
# Defaults to all builds.
replacements:
amd64: x86_64
386: i386
darwin: macOS
linux: Linux
vendor: Clement Sam
homepage: https://github.com/profclems/glab
maintainer: Clement Sam <[email protected]>
description: An open source gitlab cli tool
license: MIT
formats:
- deb
- rpm
dependencies:
- git
# Override default /usr/local/bin destination for binaries
bindir: /usr/local/bin
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^Merge pull request'
- '^chore'