@@ -32,6 +32,7 @@ builds:
32
32
- amd64
33
33
hooks :
34
34
post :
35
+ # Signing
35
36
- cmd : codesign -s "{{.Env.APPLE_APPLICATION_IDENTITY}}" -f -v --options=runtime "dist/macos-builds_{{.Target}}/{{.Name}}"
36
37
output : true
37
38
- cmd : codesign -vvv --deep --strict "dist/macos-builds_{{.Target}}/{{.Name}}"
@@ -46,12 +47,29 @@ builds:
46
47
output : true
47
48
- cmd : spctl -a -t open --context context:primary-signature -v dist/{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}.dmg
48
49
output : true
50
+ # Completion files
51
+ - cmd : mkdir -p dist/macos-builds_{{.Target}}/completions
52
+ - cmd : sh -c './dist/macos-builds_{{.Target}}/{{.Name}} completion zsh > ./dist/macos-builds_{{.Target}}/completions/stackit.zsh'
53
+ - cmd : sh -c './dist/macos-builds_{{.Target}}/{{.Name}} completion bash > ./dist/macos-builds_{{.Target}}/completions/stackit.bash'
54
+ - cmd : sh -c './dist/macos-builds_{{.Target}}/{{.Name}} completion fish > ./dist/macos-builds_{{.Target}}/completions/stackit.fish'
49
55
50
56
archives :
51
- - formats : [ 'tar.gz' ]
57
+ - ids :
58
+ - linux-builds
59
+ - windows-builds
60
+ formats : [ 'tar.gz' ]
52
61
format_overrides :
53
62
- goos : windows
54
63
formats : [ 'zip' ]
64
+ - id : macos-archives
65
+ ids :
66
+ - macos-builds
67
+ formats : [ 'tar.gz' ]
68
+ files :
69
+ - src : ./dist/macos-builds_{{.Target}}/completions/*
70
+ dst : completions
71
+ - LICENSE.md
72
+ - README.md
55
73
56
74
release :
57
75
# If set to auto, the GitHub release will be marked as "Pre-release"
@@ -96,8 +114,11 @@ signs:
96
114
" ${artifact}" ,
97
115
]
98
116
99
- brews :
117
+ homebrew_casks :
100
118
- name : stackit
119
+ directory : Casks
120
+ conflicts :
121
+ - formula : stackit
101
122
repository :
102
123
owner : stackitcloud
103
124
name : homebrew-tap
@@ -106,14 +127,14 @@ brews:
106
127
107
128
homepage : " https://github.com/stackitcloud/stackit-cli"
108
129
description : " A command-line interface to manage STACKIT resources.\n This CLI is in a beta state. More services and functionality will be supported soon."
109
- directory : Formula
110
130
license : " Apache-2.0"
111
131
# If set to auto, the release will not be uploaded to the homebrew tap repo
112
132
# if the tag has a prerelease indicator (e.g. v0.0.1-alpha1)
113
133
skip_upload : auto
114
- install : |
115
- bin.install "stackit"
116
- generate_completions_from_executable(bin/"stackit", "completion")
134
+ completions :
135
+ zsh : ./completions/stackit.zsh
136
+ bash : ./completions/stackit.bash
137
+ fish : ./completions/stackit.fish
117
138
118
139
snapcrafts :
119
140
# IDs of the builds for which to create packages for
0 commit comments