-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
89 lines (87 loc) · 2.31 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: 2
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
- go mod vendor
# you may remove this if you don't need go generate
#- go generate ./...
builds:
- env:
- CGO_ENABLED=0
- GOPROXY=https://proxy.golang.org go
- GO111MODULE=on
goos:
- linux
- windows
- darwin
ldflags:
- "-s -w -X github.com/isindir/git-get/version.Version=v{{.Version}} -X github.com/isindir/git-get/version.Commit={{.ShortCommit}} -X github.com/isindir/git-get/version.Time={{.CommitDate}}"
brews:
- name: git-get
repository:
owner: isindir
name: homebrew-git-get
branch: master
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: Eriks Zelenka
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }} - {{.ShortCommit}}"
directory: Formula
homepage: "https://github.com/isindir/git-get"
license: "MIT"
description: "Tool to clone/fetch project repositories an-mass using Gitfile configuration file. git-get can also generate Gitfile from github, gitlab or bitbucket, to have all repositories user has access to."
test: |
system "#{bin}/git-get", "version", "--long"
release:
prerelease: auto
# Defaults to empty.
#extra_files:
#- glob: ./path/to/file.txt
#- glob: ./glob/**/to/**/file/**/*
header: |
> {{ .Date }}
archives:
- format_overrides:
- goos: windows
format: zip
name_template: >-
{{ .ProjectName }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }}
#replacements:
# darwin: Darwin
# linux: Linux
# windows: Windows
# 386: i386
# amd64: x86_64
# arm64: arm64
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
use: github
sort: asc
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: Component Upgrade
regexp: "^.*up[(\\w)]*:+.*$"
order: 2
- title: Documentation Update
regexp: "^.*doc[(\\w)]*:+.*$"
order: 3
- title: Pipeline changes
regexp: "^.*pipe[(\\w)]*:+.*$"
order: 4
- title: Other changes
order: 999
filters:
exclude:
- '^test:'
- '^skip:'
- '^Fix typo'