LearnGO/go/pkg/mod/github.com/nametake/golangci-lint-langserver@v0.0.9/.goreleaser.yaml
2024-09-19 21:38:24 -04:00

30 lines
630 B
YAML

---
project_name: golangci-lint-langserver
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- main: .
binary: golangci-lint-langserver
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Revision={{.ShortCommit}}
env:
- CGO_ENABLED=0
archives:
- 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 -}}
format_overrides:
- goos: windows
format: zip
release:
prerelease: auto