fix: 修复构建路径问题,go.mod在根目录

This commit is contained in:
2026-04-18 17:16:42 +08:00
parent e0fb44954b
commit cae08ca7c8
2 changed files with 2 additions and 4 deletions
+2 -3
View File
@@ -39,9 +39,8 @@ jobs:
- name: Build binary
run: |
cd server
go mod tidy
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-s -w' -o next-terminal ../main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-s -w' -o next-terminal .
- name: Get version
id: version
@@ -55,7 +54,7 @@ jobs:
- name: Create package
run: |
mkdir -p next-terminal
cp server/next-terminal next-terminal/
cp next-terminal next-terminal/
cp config.yml.example next-terminal/config.yml
cp LICENSE next-terminal/
tar zcvf next-terminal-${{ steps.version.outputs.VERSION }}-linux-amd64.tar.gz next-terminal/
-1
View File
@@ -22,4 +22,3 @@ jobs:
with:
version: latest
args: --timeout=5m
working-directory: server