.goreleaser.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # This is an example .goreleaser.yml file with some sensible defaults.
  2. # Make sure to check the documentation at https://goreleaser.com
  3. # The lines below are called `modelines`. See `:help modeline`
  4. # Feel free to remove those if you don't want/need to use them.
  5. # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
  6. # vim: set ts=2 sw=2 tw=0 fo=cnqoj
  7. version: 1
  8. # before:
  9. # hooks:
  10. # # You may remove this if you don't use go modules.
  11. # - go mod tidy
  12. # # you may remove this if you don't need go generate
  13. # - go generate ./...
  14. builds:
  15. - env:
  16. - CGO_ENABLED=0
  17. goos:
  18. - linux
  19. - windows
  20. - darwin
  21. archives:
  22. - format: tar.gz
  23. files: []
  24. # this name template makes the OS and Arch compatible with the results of `uname`.
  25. name_template: >-
  26. {{ .ProjectName }}_
  27. {{- title .Os }}_
  28. {{- if eq .Arch "amd64" }}x86_64
  29. {{- else if eq .Arch "386" }}i386
  30. {{- else }}{{ .Arch }}{{ end }}
  31. {{- if .Arm }}v{{ .Arm }}{{ end }}
  32. # use zip for windows archives
  33. format_overrides:
  34. - goos: windows
  35. format: zip
  36. changelog:
  37. sort: asc
  38. filters:
  39. exclude:
  40. - "^docs:"
  41. - "^test:"
  42. release:
  43. disable: true
  44. skip_upload: true