diff --git a/Makefile b/Makefile index 59745c76..b16101b7 100644 --- a/Makefile +++ b/Makefile @@ -21,15 +21,16 @@ NOW=$(shell date +'%Y-%m-%d_%T') COMMIT:=$(shell git log -1 --format='%H') SHORT_COMMIT:=$(shell git rev-parse --short=7 HEAD) CHAIN_VERSION:=$(shell cat chain.version) +LATEST_VERSION=$(shell curl -s "https://api.github.com/repos/arkeonetwork/arkeo/releases/latest" | jq -r '.tag_name') SENTINEL_VERSION:=$(shell cat sentinel.version) TAG?=latest -ldflags = -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=$(CHAIN_VERSION) \ +ldflags = -X github.com/arkeonetwork/arkeo/x/arkeo/configs.Version=$(LATEST_VERSION) \ -X github.com/arkeonetwork/arkeo/sentinel.Version=$(SENTINEL_VERSION) \ -X github.com/arkeonetwork/arkeo/x/arkeo/configs.GitCommit=$(COMMIT) \ -X github.com/arkeonetwork/arkeo/x/arkeo/configs.BuildTime=${NOW} \ -X github.com/cosmos/cosmos-sdk/version.Name=Arkeo \ -X github.com/cosmos/cosmos-sdk/version.AppName=arkeo \ - -X github.com/cosmos/cosmos-sdk/version.Version=$(CHAIN_VERSION) \ + -X github.com/cosmos/cosmos-sdk/version.Version=$(LATEST_VERSION) \ -X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \ -X github.com/cosmos/cosmos-sdk/version.BuildTags=$(TAG) diff --git a/chain.version b/chain.version index 4dd82360..d00491fd 100644 --- a/chain.version +++ b/chain.version @@ -1 +1 @@ -v1.0.1-Prerelease +1