diff --git a/cli/.goreleaser.yaml b/cli/.goreleaser.yaml index 3fb7d63..d14095a 100644 --- a/cli/.goreleaser.yaml +++ b/cli/.goreleaser.yaml @@ -9,10 +9,14 @@ before: builds: - env: - CGO_ENABLED=0 + - VERSION=$(curl -s https://api.github.com/repos/chainbase-labs/manuscript-core/releases/latest | grep 'tag_name' | cut -d'"' -f4)" goos: - linux - windows - darwin + ldflags: + - -s -w + - -X commands.version={{.Version}} archives: - format: tar.gz