.goreleaser.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. version: 2
  2. project_name: opencode
  3. before:
  4. hooks:
  5. builds:
  6. - env:
  7. - CGO_ENABLED=0
  8. goos:
  9. - linux
  10. - darwin
  11. goarch:
  12. - amd64
  13. - arm64
  14. ldflags:
  15. - -s -w -X github.com/sst/opencode/internal/version.Version={{.Version}}
  16. main: ./main.go
  17. archives:
  18. - format: tar.gz
  19. name_template: >-
  20. opencode-
  21. {{- if eq .Os "darwin" }}mac-
  22. {{- else if eq .Os "windows" }}windows-
  23. {{- else if eq .Os "linux" }}linux-{{end}}
  24. {{- if eq .Arch "amd64" }}x86_64
  25. {{- else if eq .Arch "#86" }}i386
  26. {{- else }}{{ .Arch }}{{ end }}
  27. {{- if .Arm }}v{{ .Arm }}{{ end }}
  28. format_overrides:
  29. - goos: windows
  30. format: zip
  31. checksum:
  32. name_template: "checksums.txt"
  33. snapshot:
  34. name_template: "0.0.0-{{ .Timestamp }}"
  35. aurs:
  36. - name: opencode
  37. homepage: "https://github.com/sst/opencode"
  38. description: "terminal based agent that can build anything"
  39. maintainers:
  40. - "dax"
  41. - "adam"
  42. license: "MIT"
  43. private_key: "{{ .Env.AUR_KEY }}"
  44. git_url: "ssh://[email protected]/opencode-bin.git"
  45. provides:
  46. - opencode
  47. conflicts:
  48. - opencode
  49. package: |-
  50. install -Dm755 ./opencode "${pkgdir}/usr/bin/opencode"
  51. brews:
  52. - repository:
  53. owner: sst
  54. name: homebrew-tap
  55. nfpms:
  56. - maintainer: kujtimiihoxha
  57. description: terminal based agent that can build anything
  58. formats:
  59. - deb
  60. - rpm
  61. file_name_template: >-
  62. {{ .ProjectName }}-
  63. {{- if eq .Os "darwin" }}mac
  64. {{- else }}{{ .Os }}{{ end }}-{{ .Arch }}
  65. changelog:
  66. sort: asc
  67. filters:
  68. exclude:
  69. - "^docs:"
  70. - "^doc:"
  71. - "^test:"
  72. - "^ci:"
  73. - "^ignore:"
  74. - "^example:"
  75. - "^wip:"