Skip to content

Commit e504d87

Browse files
committed
test
1 parent 0dedf45 commit e504d87

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
workflow_dispatch: # 允许手动触发 workflow
78

89
jobs:
910
build:
@@ -24,11 +25,12 @@ jobs:
2425
with:
2526
go-version: '1.24'
2627
- name: Build
28+
env:
29+
GOOS: ${{ matrix.goos }}
30+
GOARCH: ${{ matrix.goarch }}
31+
GOARM: 7
32+
CGO_ENABLED: 0 # 禁用 CGO 以进行静态链接
2733
run: |
28-
GOOS=${{ matrix.goos }}
29-
GOARCH=${{ matrix.goarch }}
30-
GOARM=7
31-
CGO_ENABLED=0
3234
output_name="godoc-mcp-server-${GOOS}-${GOARCH}"
3335
if [ "${GOOS}" = "windows" ]; then
3436
output_name="${output_name}.exe"
@@ -41,3 +43,6 @@ jobs:
4143
file: godoc-mcp-server-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goos == 'windows' && '.exe' || '' }}
4244
tag: latest
4345
overwrite: true
46+
file_glob: true
47+
release_name: "Latest Release"
48+
body: "Automatically built binaries for different platforms."

0 commit comments

Comments
 (0)