@@ -7,17 +7,33 @@ before:
77 - go mod tidy
88
99builds :
10- - env :
10+ - id : default
11+ env :
1112 - CGO_ENABLED=0
1213 main : ./cmd/mcp-grafana
1314 goos :
1415 - linux
1516 - windows
1617 - darwin
1718 ldflags : " -s -w -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser"
19+ - id : gemini-cli-extension
20+ env :
21+ - CGO_ENABLED=0
22+ main : ./cmd/mcp-grafana
23+ goos :
24+ - linux
25+ - windows
26+ - darwin
27+ goarch :
28+ - amd64
29+ - arm64
30+ ldflags : " -s -w -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser"
1831
1932archives :
20- - formats : tar.gz
33+ - id : default
34+ ids :
35+ - default
36+ formats : tar.gz
2137 # this name template makes the OS and Arch compatible with the results of `uname`.
2238 name_template : >-
2339 {{ .ProjectName }}_
@@ -31,6 +47,43 @@ archives:
3147 - goos : windows
3248 formats : zip
3349
50+ # The Gemini CLI Extension format.
51+ # See https://github.com/google-gemini/gemini-cli/blob/main/docs/extension-releasing.md#platform-specific-archives.
52+ # We'll use platform and architecture specific archive names, which must look like:
53+ #
54+ # {platform}.{arch}.{name}.{extension}
55+ #
56+ # Where the fields are:
57+ #
58+ # - {name}: The name of your extension.
59+ # - {platform}: The operating system. Supported values are:
60+ # - darwin (macOS)
61+ # - linux
62+ # - win32 (Windows)
63+ # - {arch}: The architecture. Supported values are:
64+ # - x64
65+ # - arm64
66+ # - {extension}: The file extension of the archive (e.g., .tar.gz or .zip).
67+ #
68+ # Examples:
69+ # - darwin.arm64.{project}.tar.gz (specific to Apple Silicon Macs)
70+ # - linux.x64.{project}.tar.gz
71+ # - win32.{project}.zip
72+ - id : gemini-cli-extension
73+ ids :
74+ - gemini-cli-extension
75+ formats : tar.gz
76+ files :
77+ - gemini-extension.json
78+ name_template : >-
79+ {{ if eq .Os "windows" }}win32
80+ {{- else }}{{ .Os }}{{ end }}.
81+ {{- if eq .Arch "amd64" }}x64
82+ {{- else }}{{ .Arch }}{{ end }}.grafana
83+ format_overrides :
84+ - goos : windows
85+ formats : zip
86+
3487changelog :
3588 sort : asc
3689 filters :
0 commit comments