-
Notifications
You must be signed in to change notification settings - Fork 2
/
goreleaser.yaml
59 lines (58 loc) · 1.52 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
version: 2
# Make sure to check the documentation at https://goreleaser.com
project_name: smallweb
before:
hooks:
- go mod tidy
- go generate ./...
- rm -rf completions
- mkdir completions
- sh -c 'go run . completion "bash" >./completions/{{ .ProjectName }}.bash'
- sh -c 'go run . completion "zsh" >./completions/{{ .ProjectName }}.zsh'
- sh -c 'go run . completion "fish" >./completions/{{ .ProjectName }}.fish'
changelog:
disable: true
builds:
- env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/pomdtr/smallweb/build.Version={{.Version}}
- -X github.com/pomdtr/smallweb/build.Commit={{.Commit}}
- -X github.com/pomdtr/smallweb/build.Date={{.Date}}
- -X github.com/pomdtr/smallweb/build.BuiltBy=goreleaser
goos:
- linux
- darwin
archives:
- files:
- README.md
- LICENSE.md
- completions/*
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ incpatch .Version }}-next"
release:
prerelease: auto
extra_files:
- glob: schemas/*.schema.json
github:
owner: pomdtr
name: smallweb
brews:
- name: smallweb
homepage: https://smallweb.run
repository:
owner: pomdtr
name: homebrew-tap
skip_upload: auto
install: |-
bin.install "smallweb"