.goreleaser.yaml 939 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Release builds: run by .github/workflows/release.yml when a version tag
  2. # (v1.0.0, v1.0.1, ...) is pushed. Check locally with:
  3. # goreleaser release --snapshot --clean
  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: github
  31. sort: asc
  32. release:
  33. # Created as a draft so the binaries and notes can be checked before the
  34. # release is published.
  35. draft: true