-
Notifications
You must be signed in to change notification settings - Fork 5
/
.goreleaser.yml
71 lines (60 loc) · 1.62 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
project_name: depot
release:
name_template: "Depot CLI {{.Version}}"
prerelease: auto
before:
hooks:
- go mod tidy
builds:
- <<: &build_defaults
binary: bin/depot
main: ./cmd/depot
ldflags:
- -s -w -X github.com/depot/cli/internal/build.Version={{.Version}} -X github.com/depot/cli/internal/build.Date={{time "2006-01-02"}} -X github.com/depot/cli/internal/build.SentryEnvironment=release
id: macos
goos: [darwin]
goarch: [amd64, arm64]
env:
- CGO_ENABLED=0
- <<: *build_defaults
id: linux
goos: [linux]
goarch: ["386", arm, amd64, arm64]
env:
- CGO_ENABLED=0
- <<: *build_defaults
id: windows
goos: [windows]
goarch: ["386", arm, amd64, arm64]
env:
- CGO_ENABLED=0
archives:
- id: nix
builds: [macos, linux]
format: tar.gz
- id: windows
builds: [windows]
format: zip
changelog:
skip: true
brews:
- repository:
owner: depot
name: homebrew-tap
commit_author:
name: depot-bot
email: [email protected]
homepage: https://depot.dev
description: The official CLI for Depot.
license: MIT
skip_upload: auto
install: |
bin.install "bin/depot"
bash_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "bash")
fish_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "fish")
zsh_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "zsh")
(bash_completion/"depot").write bash_comp
(fish_completion/"depot.fish").write fish_comp
(zsh_completion/"_depot").write zsh_comp
test: |
system "#{bin}/depot version"