Deprecate upgrade (#99)

* Deprecate upgrade

* Automate using goreleaser

* Fix name and version

* Automate
This commit is contained in:
Sung Won Cho 2018-09-01 16:30:15 +10:00 committed by GitHub
commit b3a12aed85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 40 additions and 22 deletions

View file

@ -1,20 +1,14 @@
release:
@echo "** Releasing version $(VERSION)..."
@echo "** Building..."
@$(MAKE) build
@echo "** Tagging and pushing..."
@git tag -a $(VERSION) -m "$(VERSION)"
@git push --tags
@goreleaser
.PHONY: release
build: install-gox
@$(GOPATH)/bin/gox -ldflags "-X main.apiEndpoint=https://api.dnote.io" -osarch="darwin/386 darwin/amd64 linux/386 linux/amd64 openbsd/386 openbsd/amd64 window/386 windows/amd64" -output="dnote-{{.OS}}-{{.Arch}}" ./...
.PHONY: build
install-gox:
@echo "** Installing Gox..."
@go get github.com/mitchellh/gox
.PHONY: install-gox
build-snapshot:
@goreleaser --snapshot --rm-dist
.PHONY: build-snapshot
clean:
@git clean -f