.goreleaser.yml

 1version: 2
 2
 3before:
 4  hooks:
 5    - go mod tidy
 6
 7builds:
 8  - id: shelley
 9    binary: shelley
10    main: ./cmd/shelley
11    env:
12      - CGO_ENABLED=0
13    goos:
14      - linux
15      - darwin
16    goarch:
17      - amd64
18      - arm64
19    ldflags:
20      - -s -w
21      - -X shelley.exe.dev/version.Version={{ .Version }}
22      - -X shelley.exe.dev/version.Tag={{ .Tag }}
23
24archives:
25  - id: shelley
26    formats:
27      - binary
28    name_template: >-
29      {{ .ProjectName }}_
30      {{- .Os }}_
31      {{- .Arch }}
32
33checksum:
34  name_template: 'checksums.txt'
35
36snapshot:
37  version_template: "{{ incpatch .Version }}-next"
38
39changelog:
40  sort: asc
41  filters:
42    exclude:
43      - '^docs:'
44      - '^test:'
45      - '^chore:'
46      - 'typo'
47
48release:
49  github:
50    owner: boldsoftware
51    name: shelley
52  draft: false
53  prerelease: auto
54
55homebrew_casks:
56  - name: shelley
57    binaries:
58      - shelley
59    repository:
60      owner: boldsoftware
61      name: homebrew-tap
62      token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
63    directory: Casks
64    homepage: https://github.com/boldsoftware/shelley
65    description: "A mobile-friendly, web-based, multi-modal coding agent"
66    hooks:
67      post:
68        install: |
69          system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{caskroom_path}"]