.goreleaser.yaml 985 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Release builds, made locally into dist/ (see "Releasing" in README.md):
  2. # goreleaser release --clean # on a version tag
  3. # goreleaser release --snapshot --clean # test build of the current commit
  4. version: 2
  5. project_name: rekopub
  6. builds:
  7. - id: rekopub
  8. main: ./cmd/rekopub
  9. binary: rekopub
  10. env:
  11. - CGO_ENABLED=0 # pure Go: one self-contained file per platform
  12. goos: [windows, linux, darwin]
  13. goarch: [amd64, arm64]
  14. flags: [-trimpath]
  15. ldflags:
  16. - -s -w -X main.version={{ .Version }}
  17. archives:
  18. - id: rekopub
  19. name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
  20. formats: [tar.gz]
  21. format_overrides:
  22. - goos: windows
  23. formats: [zip]
  24. files:
  25. - README.md
  26. - LICENSE
  27. checksum:
  28. name_template: checksums.txt
  29. changelog:
  30. use: git
  31. sort: asc
  32. release:
  33. # Nothing is published: the files in dist/ are attached to a release on
  34. # git.monoexp.com by hand.
  35. disable: true