-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
75 lines (66 loc) · 1.9 KB
/
.goreleaser.yaml
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
# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 1
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- main: ./cmd/go
binary: go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
- freebsd
- openbsd
- solaris
goarch:
- "386"
- amd64
- arm
- arm64
release:
name_template: "Release {{.Tag}}"
changelog:
use: github-native
archives:
- format: zip
name_template: "{{ .ProjectName }}_{{ .Version }}_{{- .Os }}_{{- .Arch }}"
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}'
maintainer: 'https://github.com/dvaumoron'
homepage: https://github.com/dvaumoron/lastgo
description: >-
lastgo provides an alternative go command which is a proxy keeping up to date the Go toolchain (see https://go.dev).
license: "Apache-2.0"
formats:
- deb
- rpm
- apk
bindir: /usr/bin
section: default
contents:
- src: ./LICENSE
dst: /usr/share/doc/lastgo/copyright
file_info:
mode: 0444
rpm:
signature:
key_file: "{{ if index .Env \"GPG_KEY_FILE\" }}{{.Env.GPG_KEY_FILE}}{{ end }}"
deb:
signature:
key_file: "{{ if index .Env \"GPG_KEY_FILE\" }}{{.Env.GPG_KEY_FILE}}{{ end }}"
brews:
- repository:
owner: dvaumoron
name: homebrew-tap
directory: Formula
homepage: https://github.com/dvaumoron/lastgo
description: provides an alternative go command which is a proxy keeping up to date the Go toolchain (see https://go.dev).
license: "Apache-2.0"
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"