fix: 修复构建路径问题,go.mod在根目录
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -22,4 +22,3 @@ jobs:
|
||||
with:
|
||||
version: latest
|
||||
args: --timeout=5m
|
||||
working-directory: server
|
||||
|
||||
Reference in New Issue
Block a user