-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
.goreleaser.yml
87 lines (76 loc) · 2.27 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
env:
- GO111MODULE=on
- CGO_ENABLED=0
- PROJECT_NAME=goimports-reviser
- PROJECT_USER=incu6us
version: 2
before:
hooks:
- go mod download
builds:
- id: goimports-reviser-amd64
binary: goimports-reviser
goos:
- linux
goarch:
- amd64
ldflags:
- -s -w -X "main.Tag={{ .Tag }}" -X "main.Commit={{ .FullCommit }}" -X "main.SourceURL={{ .GitURL }}" -X "main.GoVersion={{ .Env.GO_VERSION }}"
- id: goimports-reviser-darwin-amd64
binary: goimports-reviser
goos:
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w -X "main.Tag={{ .Tag }}" -X "main.Commit={{ .FullCommit }}" -X "main.SourceURL={{ .GitURL }}" -X "main.GoVersion={{ .Env.GO_VERSION }}"
- id: goimports-reviser-windows-amd64
binary: goimports-reviser
goos:
- windows
goarch:
- amd64
ldflags:
- -s -w -X "main.Tag={{ .Tag }}" -X "main.Commit={{ .FullCommit }}" -X "main.SourceURL={{ .GitURL }}" -X "main.GoVersion={{ .Env.GO_VERSION }}"
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
prerelease: auto
github:
owner: incu6us
name: goimports-reviser
brews:
- name: goimports-reviser
repository:
owner: incu6us
name: homebrew-tap
url_template: "https://github.com/{{ .Env.PROJECT_USER }}/{{ .ProjectName }}/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: incu6us
email: vyacheslavpryimak@gmail.com
directory: Formula
homepage: "https://github.com/incu6us/goimports-reviser"
description: "Right imports sorting & code formatting tool"
test: |
system "#{bin}/goimports-reviser -version"
install: |
bin.install "goimports-reviser"
snapcrafts:
- id: goimports-reviser
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
publish: true
summary: "Right imports sorting & code formatting tool"
description: |
Tool for Golang to sort goimports by 3 groups: std, general and project dependencies. Also, formatting for your code will be prepared(so, you don't need to use gofmt or goimports separately).
grade: stable
confinement: strict
license: MIT