.goreleaser.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. env_files:
  9. # GoReleaser requires an API token with the 'repo' scope selected to deploy
  10. # the artifacts to GitHub. You can create one here
  11. # https://github.com/settings/tokens/new.
  12. github_token: ./github_token
  13. #before:
  14. # hooks:
  15. # # You may remove this if you don't use go modules.
  16. # - go mod tidy
  17. # # you may remove this if you don't need go generate
  18. # - go generate ./...
  19. builds:
  20. - skip: true
  21. archives:
  22. - format: tar.gz
  23. # this name template makes the OS and Arch compatible with the results of `uname`.
  24. name_template: >-
  25. {{ .ProjectName }}_
  26. {{- title .Os }}_
  27. {{- if eq .Arch "amd64" }}x86_64
  28. {{- else if eq .Arch "386" }}i386
  29. {{- else }}{{ .Arch }}{{ end }}
  30. {{- if .Arm }}v{{ .Arm }}{{ end }}
  31. # use zip for windows archives
  32. format_overrides:
  33. - goos: windows
  34. format: zip
  35. checksum:
  36. name_template: 'checksums.txt'
  37. snapshot:
  38. name_template: '{{ .Tag }}-next'
  39. changelog:
  40. use: github-native
  41. sort: asc
  42. release:
  43. draft: false
  44. replace_existing_draft: true