ci: add goreleaser (#5527)

Co-authored-by: Erik Grinaker <erik@interchain.berlin>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
This commit is contained in:
Marko
2020-10-27 13:54:53 +01:00
committed by GitHub
parent 38587d83c4
commit d0db59e16c
23 changed files with 83 additions and 661 deletions

View File

@@ -2,7 +2,8 @@
TENDERMINT_VERSION?=latest
BUILD_TAGS?='tendermint'
BUILD_FLAGS = -ldflags "-X github.com/tendermint/tendermint/version.GitCommit=`git rev-parse --short=8 HEAD`"
VERSION := $(shell git describe --always)
BUILD_FLAGS = -ldflags "-X github.com/tendermint/tendermint/version.TMCoreSemVer=$(VERSION)
.DEFAULT_GOAL := build

View File

@@ -181,7 +181,7 @@ func main() {
}
extractKey(flagTMHome, flagKeyOutputPath)
case "version":
fmt.Println(version.Version)
fmt.Println(version.TMCoreSemVer)
default:
fmt.Printf("Unrecognized command: %s\n", flag.Arg(0))
os.Exit(1)