-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
81 lines (80 loc) · 2.03 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
version: 2
before:
hooks:
- go mod download
- go mod tidy
builds:
-
id: gh-do-linux
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
main: ./cmd/gh-do/main.go
ldflags:
- -s -w -X github.com/k1LoW/gh-do.version={{.Version}} -X github.com/k1LoW/gh-do.commit={{.FullCommit}} -X github.com/k1LoW/gh-do.date={{.Date}} -X github.com/k1LoW/gh-do/version.Version={{.Version}}
-
id: gh-do-darwin
env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- amd64
- arm64
main: ./cmd/gh-do/main.go
ldflags:
- -s -w -X github.com/k1LoW/gh-do.version={{.Version}} -X github.com/k1LoW/gh-do.commit={{.FullCommit}} -X github.com/k1LoW/gh-do.date={{.Date}} -X github.com/k1LoW/gh-do/version.Version={{.Version}}
-
id: gh-do-windows
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
main: ./cmd/gh-do/main.go
ldflags:
- -s -w -X github.com/k1LoW/gh-do.version={{.Version}} -X github.com/k1LoW/gh-do.commit={{.FullCommit}} -X github.com/k1LoW/gh-do.date={{.Date}} -X github.com/k1LoW/gh-do/version.Version={{.Version}}
archives:
-
id: gh-do-archive
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
- goos: darwin
format: zip
files:
- LICENSE
- CREDITS
- README.md
- CHANGELOG.md
-
id: gh-do-binary
name_template: '{{ .Binary }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: binary
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Version }}-next"
changelog:
nfpms:
- id: gh-do-nfpms
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
builds:
- gh-do-linux
homepage: https://github.com/k1LoW/gh-do
maintainer: Ken'ichiro Oyama <[email protected]>
description: gh-do is a tool to do anything using GitHub credentials.
license: MIT
formats:
- apk
- deb
- rpm
bindir: /usr/bin
epoch: 1
release:
draft: true
replace_existing_draft: true