Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit ce370cc

Browse files
committed
add releaser configs
1 parent 3256d77 commit ce370cc

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.goreleaser.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
before:
2+
hooks:
3+
- go mod tidy
4+
- go generate ./...
5+
builds:
6+
- env:
7+
- CGO_ENABLED=0
8+
goos:
9+
- linux
10+
- windows
11+
- darwin
12+
13+
archives:
14+
- format: tar.gz
15+
name_template: >-
16+
{{ .ProjectName }}_
17+
{{- title .Os }}_
18+
{{- if eq .Arch "amd64" }}x86_64
19+
{{- else if eq .Arch "386" }}i386
20+
{{- else }}{{ .Arch }}{{ end }}
21+
{{- if .Arm }}v{{ .Arm }}{{ end }}
22+
format_overrides:
23+
- goos: windows
24+
format: zip
25+
26+
checksum:
27+
name_template: "checksums.txt"
28+
snapshot:
29+
name_template: "{{ incpatch .Version }}-rc"
30+
changelog:
31+
use: github-native
32+
sort: asc
33+
filters:
34+
exclude:
35+
- "^docs:"
36+
- "^test:"
37+
38+
release:
39+
github:
40+
owner: ergomake
41+
name: layerform
42+
ids: []
43+
draft: true
44+
replace_existing_draft: true
45+
target_commitish: "{{ .Commit }}"
46+
prerelease: auto
47+
make_latest: true
48+
mode: append
49+
footer: |
50+
Those were the changes on {{ .Tag }}.
51+
name_template: "{{.ProjectName}}-v{{.Version}}"
52+
skip_upload: false

0 commit comments

Comments
 (0)