-
Notifications
You must be signed in to change notification settings - Fork 281
/
.goreleaser.yml
67 lines (60 loc) · 1.31 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: 2
dist: releases
snapshot:
name_template: '{{ trimprefix .Summary "v" }}'
builds:
- id: default
binary: gptscript
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
flags:
- -trimpath
ldflags:
- -s
- -w
- -X "github.com/gptscript-ai/gptscript/pkg/version.Tag=v{{ .Version }}"
universal_binaries:
- id: mac
ids:
- default
replace: true
archives:
- id: default
builds:
- default
- mac
name_template: 'gptscript-v{{ .Version }}-{{ if eq .Os "darwin" }}macOS-universal{{ else }}{{ .Os }}-{{ .Arch }}{{ .Arm }}{{ end }}'
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
changelog:
use: github
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^Merge pull request"
release:
github:
owner: gptscript-ai
name: gptscript
prerelease: auto
brews:
- name: gptscript
description: "GPTScript CLI"
install: |
bin.install "gptscript"
generate_completions_from_executable(bin/"gptscript", "completion")
homepage: "https://github.com/gptscript-ai/gptscript"
skip_upload: false
directory: "Formula"
repository:
owner: gptscript-ai
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"