File tree 4 files changed +82
-1
lines changed
4 files changed +82
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ permissions :
9
+ contents : write
10
+
11
+ jobs :
12
+ goreleaser :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v4
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ - name : Set up Go
21
+ uses : actions/setup-go@v4
22
+ with :
23
+ go-version : " >=1.21.0"
24
+ cache : true
25
+
26
+ - name : Run GoReleaser
27
+ uses : goreleaser/goreleaser-action@v5
28
+ with :
29
+ distribution : goreleaser
30
+ version : latest
31
+ args : release --clean
32
+ env :
33
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 7
7
.idea
8
8
test /
9
9
build /
10
- scripts /
10
+ scripts /
11
+ dist /
Original file line number Diff line number Diff line change
1
+ before :
2
+ hooks :
3
+ - go mod tidy
4
+
5
+ builds :
6
+ - env :
7
+ - CGO_ENABLED=0
8
+ goos :
9
+ - linux
10
+ - windows
11
+ - darwin
12
+ goarch :
13
+ - amd64
14
+ - arm64
15
+ ignore :
16
+ - goos : windows
17
+ goarch : arm64
18
+ binary : mcphost
19
+ ldflags :
20
+ - -s -w -X main.version={{.Version}}
21
+
22
+ archives :
23
+ - format : tar.gz
24
+ name_template : >-
25
+ {{ .ProjectName }}_
26
+ {{- title .Os }}_
27
+ {{- if eq .Arch "amd64" }}x86_64
28
+ {{- else }}{{ .Arch }}{{ end }}
29
+ {{- if .Arm }}v{{ .Arm }}{{ end }}
30
+ format_overrides :
31
+ - goos : windows
32
+ format : zip
33
+
34
+ checksum :
35
+ name_template : " checksums.txt"
36
+
37
+ changelog :
38
+ sort : asc
39
+ filters :
40
+ exclude :
41
+ - " ^docs:"
42
+ - " ^test:"
43
+ - " ^ci:"
44
+ - Merge pull request
45
+ - Merge branch
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package main
2
2
3
3
import "github.com/mark3labs/mcphost/cmd"
4
4
5
+ var version = "dev"
6
+
5
7
func main () {
6
8
cmd .Execute ()
7
9
}
You can’t perform that action at this time.
0 commit comments