Skip to content

Commit 5215a88

Browse files
committed
fix(ci): build release binaries from Go module path
1 parent 45f1202 commit 5215a88

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/publish-binaries.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
run: |
6868
set -euo pipefail
6969
70+
ROOT_DIR="$PWD"
7071
mkdir -p dist
7172
VERSION="${{ steps.prepare.outputs.version_no_v }}"
7273
@@ -93,9 +94,12 @@ jobs:
9394
archive_ext=".zip"
9495
fi
9596
96-
CGO_ENABLED=0 GOOS="$goos" GOARCH="$goarch" \
97-
go build -trimpath -ldflags="-s -w" \
98-
-o "$out_dir/$bin_name" ./apps/server/cmd/woottyd
97+
(
98+
cd apps/server
99+
CGO_ENABLED=0 GOOS="$goos" GOARCH="$goarch" \
100+
go build -trimpath -ldflags="-s -w" \
101+
-o "$ROOT_DIR/$out_dir/$bin_name" ./cmd/woottyd
102+
)
99103
100104
cp README.md LICENSE "$out_dir/"
101105

0 commit comments

Comments
 (0)