Skip to content

Commit

Permalink
goreleaser config update
Browse files Browse the repository at this point in the history
  • Loading branch information
den-is committed Mar 27, 2023
1 parent bafc19b commit 22456ed
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 53 deletions.
59 changes: 59 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
goarm:
- 7
dir: .
main: .
flags:
- -trimpath
ldflags:
- -s -w -X github.com/den-is/ktempl/cmd.version={{.Version}} -X github.com/den-is/ktempl/cmd.commit={{.Commit}} -X github.com/den-is/ktempl/cmd.date={{.Date}}

archives:
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
format: tar.gz
wrap_in_directory: true
rlcp: true
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ .Tag }}-snapshot-{{ .ShortCommit }}"

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^readme|README"
- "^roadmap|ROADMAP"
- "^gorelease"
- "^cicd"
- "^typo"
- "^gitignore"
53 changes: 0 additions & 53 deletions .goreleaser.yml

This file was deleted.

0 comments on commit 22456ed

Please sign in to comment.