-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
.goreleaser.yml
76 lines (76 loc) · 1.82 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
68
69
70
71
72
73
74
75
76
project_name: timoni
changelog:
use: github-native
builds:
- <<: &build_defaults
binary: timoni
main: ./cmd/timoni
ldflags:
- -s -w -X main.VERSION={{ .Version }}
env:
- CGO_ENABLED=0
id: linux
goos:
- linux
goarch:
- amd64
- arm64
- <<: *build_defaults
id: darwin
goos:
- darwin
goarch:
- amd64
- arm64
- <<: *build_defaults
id: windows
goos:
- windows
goarch:
- amd64
archives:
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
id: nix
builds: [darwin, linux]
format: tar.gz
files:
- LICENSE
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
id: windows
builds: [windows]
format: zip
files:
- LICENSE
source:
enabled: true
name_template: '{{ .ProjectName }}_{{ .Version }}_source_code'
sboms:
- id: source
artifacts: source
documents:
- "{{ .ProjectName }}_{{ .Version }}_sbom.spdx.json"
brews:
- name: timoni
repository:
owner: stefanprodan
name: homebrew-tap
branch: main
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
directory: Formula
homepage: "https://timoni.sh"
description: "Timoni CLI"
dependencies:
- name: cue
type: optional
- name: diffutils
type: optional
install: |
bin.install "timoni"
bash_output = Utils.safe_popen_read(bin/"timoni", "completion", "bash")
(bash_completion/"timoni").write bash_output
zsh_output = Utils.safe_popen_read(bin/"timoni", "completion", "zsh")
(zsh_completion/"_timoni").write zsh_output
fish_output = Utils.safe_popen_read(bin/"timoni", "completion", "fish")
(fish_completion/"timoni.fish").write fish_output
test: |
system "#{bin}/timoni version"