We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2451d5 commit cf873dbCopy full SHA for cf873db
.github/workflows/release.yaml
@@ -25,7 +25,7 @@ jobs:
25
with:
26
go-version: '^1.15'
27
28
- - run: go build -v -o cloud-agent-$GOOS-$GOARCH
+ - 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)"
29
30
- run: gh release upload $(echo $GITHUB_REF | cut -d/ -f3) ./cloud-agent-$GOOS-$GOARCH
31
env:
0 commit comments