.goreleaser.yaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # When adding options check the documentation at https://goreleaser.com
  2. before:
  3. hooks:
  4. - go mod tidy
  5. builds:
  6. - env:
  7. - CGO_ENABLED=0
  8. goos:
  9. - linux
  10. - darwin
  11. goarch:
  12. - amd64
  13. - arm64
  14. main: ./otto
  15. id: otto
  16. binary: otto
  17. universal_binaries:
  18. - replace: true
  19. id: otto
  20. checksum:
  21. name_template: 'checksums.txt'
  22. snapshot:
  23. name_template: "{{ incpatch .Version }}-next"
  24. archives:
  25. - id: otto
  26. name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
  27. release:
  28. header: |
  29. <a name="{{.Tag}}"></a>
  30. ### {{.Tag}} Release Notes ({{.Date}})
  31. footer: |
  32. [Full Changelog](https://{{ .ModulePath }}/compare/{{ .PreviousTag }}...{{ .Tag }})
  33. changelog:
  34. use: github
  35. sort: asc
  36. filters:
  37. exclude:
  38. - Merge pull request
  39. - Merge remote-tracking branch
  40. - Merge branch
  41. # Group commits messages by given regex and title.
  42. # Order value defines the order of the groups.
  43. # Proving no regex means all commits will be grouped under the default group.
  44. # Groups are disabled when using github-native, as it already groups things by itself.
  45. # Matches are performed against strings of the form: "<abbrev-commit> <title-commit>".
  46. # Regex use RE2 syntax as defined here: https://github.com/google/re2/wiki/Syntax.
  47. #
  48. # Default is no groups.
  49. groups:
  50. - title: Features
  51. regexp: '^.*?(feat|feature)(\([[:word:]]+\))??!?:.+$'
  52. order: 0
  53. - title: 'Bug fixes'
  54. regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
  55. order: 1
  56. - title: 'Chores'
  57. regexp: '^.*?chore(\([[:word:]]+\))??!?:.+$'
  58. order: 2
  59. - title: 'Quality'
  60. regexp: '^.*?(qa|test|tests)(\([[:word:]]+\))??!?:.+$'
  61. order: 3
  62. - title: 'Documentation'
  63. regexp: '^.*?(doc|docs)(\([[:word:]]+\))??!?:.+$'
  64. order: 4
  65. - title: 'Continuous Integration'
  66. regexp: '^.*?ci(\([[:word:]]+\))??!?:.+$'
  67. order: 5
  68. - title: Other
  69. order: 999