File tree 2 files changed +77
-0
lines changed
2 files changed +77
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : goreleaser
2
+
3
+ on :
4
+ push :
5
+ # run only against tags
6
+ tags :
7
+ - " v*"
8
+
9
+ permissions :
10
+ contents : write
11
+
12
+ jobs :
13
+ goreleaser :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout
17
+ uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0
20
+ - name : Set up Go
21
+ uses : actions/setup-go@v5
22
+ with :
23
+ go-version : stable
24
+ - name : Run GoReleaser
25
+ uses : goreleaser/goreleaser-action@v6
26
+ with :
27
+ distribution : goreleaser
28
+ # 'latest', 'nightly', or a semver
29
+ version : " ~> v2"
30
+ args : release --clean
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2
+
3
+ version : 2
4
+
5
+ before :
6
+ hooks :
7
+ - go mod tidy
8
+
9
+ builds :
10
+ - env :
11
+ - CGO_ENABLED=0
12
+ main : ./cmd/mcp-grafana
13
+ goos :
14
+ - linux
15
+ - windows
16
+ - darwin
17
+
18
+ archives :
19
+ - formats : tar.gz
20
+ # this name template makes the OS and Arch compatible with the results of `uname`.
21
+ name_template : >-
22
+ {{ .ProjectName }}_
23
+ {{- title .Os }}_
24
+ {{- if eq .Arch "amd64" }}x86_64
25
+ {{- else if eq .Arch "386" }}i386
26
+ {{- else }}{{ .Arch }}{{ end }}
27
+ {{- if .Arm }}v{{ .Arm }}{{ end }}
28
+ # use zip for windows archives
29
+ format_overrides :
30
+ - goos : windows
31
+ formats : zip
32
+
33
+ changelog :
34
+ sort : asc
35
+ filters :
36
+ exclude :
37
+ - " ^docs:"
38
+ - " ^test:"
39
+
40
+ release :
41
+ footer : >-
42
+
43
+ ---
44
+
45
+ Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
You can’t perform that action at this time.
0 commit comments