-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
83 lines (73 loc) · 1.89 KB
/
.goreleaser.yml
File metadata and controls
83 lines (73 loc) · 1.89 KB
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
# GoReleaser configuration for structlint
# See https://goreleaser.com/customization/ for more details
version: 2
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/structlint
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- 386
- arm
ldflags:
- -s -w
- -X github.com/AxeForging/structlint/internal/build.Version={{.Version}}
- -X github.com/AxeForging/structlint/internal/build.Commit={{.FullCommit}}
- -X github.com/AxeForging/structlint/internal/build.Date={{.Date}}
- -X github.com/AxeForging/structlint/internal/build.BuiltBy=goreleaser
ignore:
- goos: windows
goarch: arm
archives:
- formats:
- tar.gz
name_template: "structlint-{{ .Os }}-{{ .Arch }}"
files:
- README.md
format_overrides:
- goos: windows
formats:
- zip
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: AxeForging
name: structlint
draft: false
prerelease: auto
name_template: "Release {{ .Tag }}"
footer: |
## Installation
### Go Install
```bash
go install github.com/AxeForging/structlint/cmd/structlint@{{ .Tag }}
```
### Linux/macOS (AMD64)
```bash
curl -L https://github.com/AxeForging/structlint/releases/download/{{ .Tag }}/structlint-linux-amd64.tar.gz | tar xz
chmod +x structlint-linux-amd64
sudo mv structlint-linux-amd64 /usr/local/bin/structlint
```
### Linux/macOS (ARM64)
```bash
curl -L https://github.com/AxeForging/structlint/releases/download/{{ .Tag }}/structlint-linux-arm64.tar.gz | tar xz
chmod +x structlint-linux-arm64
sudo mv structlint-linux-arm64 /usr/local/bin/structlint
```