-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
78 lines (70 loc) · 1.78 KB
/
Copy path.goreleaser.yaml
File metadata and controls
78 lines (70 loc) · 1.78 KB
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
68
69
70
71
72
73
74
75
76
77
78
# GoReleaser config for Drift — cross-compiles the CLI, publishes a GitHub
# Release with prebuilt archives + checksums, and updates the Homebrew tap.
# Docs: https://goreleaser.com
version: 2
project_name: drift
before:
hooks:
- go mod tidy
builds:
- id: drift
main: ./cmd/drift
binary: drift
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.Date}}
archives:
- id: drift
formats: [tar.gz]
name_template: >-
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
files:
- README.md
- BENCHMARKS.md
- LICENSE*
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- Merge pull request
- Merge branch
homebrew_casks:
- name: drift
# Pushes the generated cask to gribovan2005/homebrew-drift.
repository:
owner: gribovan2005
name: homebrew-drift
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
directory: Casks
homepage: "https://github.com/gribovan2005/drift"
description: "Single-binary streaming engine with live schema evolution and an AI debugger"
license: "Apache-2.0"
# The release binaries are unsigned; strip the quarantine flag on install so
# macOS Gatekeeper doesn't block the CLI.
hooks:
post:
install: |
if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/drift"]
end
release:
github:
owner: gribovan2005
name: drift
draft: false
prerelease: auto