.goreleaser.yaml 808 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. before:
  2. hooks:
  3. - go mod tidy
  4. - go generate ./...
  5. builds:
  6. - env:
  7. - CGO_ENABLED=0
  8. goos:
  9. - linux
  10. - windows
  11. - darwin
  12. archives:
  13. - format: tar.gz
  14. name_template: >-
  15. {{ .ProjectName }}_
  16. {{- title .Os }}_
  17. {{- if eq .Arch "amd64" }}x86_64
  18. {{- else if eq .Arch "386" }}i386
  19. {{- else }}{{ .Arch }}{{ end }}
  20. {{- if .Arm }}v{{ .Arm }}{{ end }}
  21. format_overrides:
  22. - goos: windows
  23. format: zip
  24. checksum:
  25. name_template: 'checksums.txt'
  26. snapshot:
  27. name_template: "{{ incpatch .Version }}-next"
  28. changelog:
  29. sort: asc
  30. filters:
  31. exclude:
  32. - '^docs:'
  33. - '^test:'
  34. gitlab_urls:
  35. api: https://moe.codes/api/v4/
  36. download: https://moe.codes
  37. skip_tls_verify: false
  38. use_package_registry: false
  39. use_job_token: true