Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release target to Makefile #62

Merged
merged 1 commit into from
Jan 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## 0.6.0 (January 15, 2020)

### Added
* Add `tvm` binary to astro release
* Add `tvm` binary to astro release (#61)
* Add release target to Makefile as github actions are no longer available (#62)

## 0.5.0 (October 3, 2019)

Expand Down
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@ lint:
exit 1; \
fi;

.PHONY: release
release:
if [ ! -z "$(VERSION)" ]; then \
git tag -a $(VERSION) -m "new version $(VERSION)"; \
git push origin $(VERSION); \
fi;
docker pull golang:1.12-stretch
docker run --rm \
-v $(PWD):/go/astro \
-e GITHUB_TOKEN=$(GITHUB_TOKEN) golang:1.12-stretch \
bash -c \
"curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh && \
cd /go/astro && /go/bin/goreleaser release --rm-dist --skip-validate"

.PHONY: test
test:
go test -timeout 1m -coverprofile=.coverage.out ./... \
Expand Down