Skip to content

Commit cf873db

Browse files
author
Akash Satheesan
authored
fix(ci): correctly set version when building (#15)
1 parent d2451d5 commit cf873db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
go-version: '^1.15'
2727

28-
- run: go build -v -o cloud-agent-$GOOS-$GOARCH
28+
- run: go build -v -o cloud-agent-$GOOS-$GOARCH -ldflags "-X go.coder.com/cloud-agent/internal/version.Version=$(echo $GITHUB_REF | cut -d/ -f3)"
2929

3030
- run: gh release upload $(echo $GITHUB_REF | cut -d/ -f3) ./cloud-agent-$GOOS-$GOARCH
3131
env:

0 commit comments

Comments
 (0)