fix: 修复构建路径问题,go.mod在根目录
This commit is contained in:
@@ -39,9 +39,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
run: |
|
run: |
|
||||||
cd server
|
|
||||||
go mod tidy
|
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
|
- name: Get version
|
||||||
id: version
|
id: version
|
||||||
@@ -55,7 +54,7 @@ jobs:
|
|||||||
- name: Create package
|
- name: Create package
|
||||||
run: |
|
run: |
|
||||||
mkdir -p next-terminal
|
mkdir -p next-terminal
|
||||||
cp server/next-terminal next-terminal/
|
cp next-terminal next-terminal/
|
||||||
cp config.yml.example next-terminal/config.yml
|
cp config.yml.example next-terminal/config.yml
|
||||||
cp LICENSE next-terminal/
|
cp LICENSE next-terminal/
|
||||||
tar zcvf next-terminal-${{ steps.version.outputs.VERSION }}-linux-amd64.tar.gz next-terminal/
|
tar zcvf next-terminal-${{ steps.version.outputs.VERSION }}-linux-amd64.tar.gz next-terminal/
|
||||||
|
|||||||
@@ -22,4 +22,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
args: --timeout=5m
|
args: --timeout=5m
|
||||||
working-directory: server
|
|
||||||
|
|||||||
Reference in New Issue
Block a user