Skip to content

Commit

Permalink
adding deploy target
Browse files Browse the repository at this point in the history
  • Loading branch information
dan9186 committed May 18, 2020
1 parent 5bed960 commit 7460481
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ coverage: ## Generates the total code coverage of the project
@tail -q -n +2 $(COVERAGE_DIR)/*.out >> $(COVERAGE_DIR)/tmp/full.out
@$(GOCMD) tool cover -func=$(COVERAGE_DIR)/tmp/full.out | tail -n 1 | sed -e 's/^.*statements)[[:space:]]*//' -e 's/%//'

.PHONY: deploy
deploy: ## Deploy the artifacts
@ext/goreleaser release

.PHONY: help
help: ## Show This Help
@for line in $$(cat Makefile | grep "##" | grep -v "grep" | sed "s/:.*##/:/g" | sed "s/\ /!/g"); do verb=$$(echo $$line | cut -d ":" -f 1); desc=$$(echo $$line | cut -d ":" -f 2 | sed "s/!/\ /g"); printf "%-30s--%s\n" "$$verb" "$$desc"; done
Expand Down

0 comments on commit 7460481

Please sign in to comment.