.goreleaser.yaml 1.5 KB

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