Skip to content

Commit

Permalink
Problem: not able to release from main branch directly (#136)
Browse files Browse the repository at this point in the history
Closes: #135

Solution:
- main branch build testnet binaries by default
- remove need for RELEASE_NOTES.md, could modify on github manually
  • Loading branch information
yihuang authored Oct 4, 2021
1 parent ce17b4e commit 6becc3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ builds:
goarch:
- amd64
flags:
- -tags=cgo
- -tags=testnet,cgo
ldflags:
- -s -w -X github.com/cosmos/cosmos-sdk/version.Name=cronos -X github.com/cosmos/cosmos-sdk/version.AppName=cronosd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
- id: "cronosd-darwin-arm64"
Expand All @@ -30,7 +30,7 @@ builds:
goarch:
- arm64
flags:
- -tags=cgo
- -tags=testnet,cgo
ldflags:
- -s -w -X github.com/cosmos/cosmos-sdk/version.Name=cronos -X github.com/cosmos/cosmos-sdk/version.AppName=cronosd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
- id: "cronosd-linux"
Expand All @@ -45,7 +45,7 @@ builds:
goarch:
- amd64
flags:
- -tags=cgo
- -tags=testnet,cgo
ldflags:
- -s -w -X github.com/cosmos/cosmos-sdk/version.Name=cronos -X github.com/cosmos/cosmos-sdk/version.AppName=cronosd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
- id: "cronosd-linux-arm64"
Expand All @@ -60,7 +60,7 @@ builds:
goarch:
- arm64
flags:
- -tags=cgo
- -tags=testnet,cgo
ldflags:
- -s -w -X github.com/cosmos/cosmos-sdk/version.Name=cronos -X github.com/cosmos/cosmos-sdk/version.AppName=cronosd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
- id: "cronosd-windows"
Expand All @@ -75,7 +75,7 @@ builds:
goarch:
- amd64
flags:
- -tags=cgo
- -tags=testnet,cgo
- -buildmode=exe
ldflags:
- -s -w -X github.com/cosmos/cosmos-sdk/version.Name=cronos -X github.com/cosmos/cosmos-sdk/version.AppName=cronosd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ release:
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
troian/golang-cross:${GOLANG_CROSS_VERSION} \
release --rm-dist --skip-validate --release-notes ./RELEASE_CHANGELOG.md
release --rm-dist --skip-validate

.PHONY: release-dry-run release

Expand Down

0 comments on commit 6becc3e

Please sign in to comment.