Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Sync makefile with main repo (#197)
Browse files Browse the repository at this point in the history
* Sync makefile with main repo

* Remove broken v check
  • Loading branch information
collindutter authored Jan 11, 2024
1 parent 62ab221 commit e1fe2f5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
publish:
.PHONY: version
version: ## Bump version and push to release branch.
@poetry version $(v)
@git add pyproject.toml
@git commit -m "Version bump v$$(poetry version -s)"
@git push origin release/v$$(poetry version -s)

.PHONY: publish
publish: ## Push git tag
@git tag v$$(poetry version -s)
@git push
@git push --tags

.DEFAULT_GOAL := help
.PHONY: help
help: ## Print Makefile help text.
@# Matches targets with a comment in the format <target>: ## <comment>
@# then formats help output using these values.
@grep -E '^[a-zA-Z_\/-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| awk 'BEGIN {FS = ":.*?## "}; \
{printf "\033[36m%-12s\033[0m%s\n", $$1, $$2}'

0 comments on commit e1fe2f5

Please sign in to comment.