Skip to content

Commit

Permalink
add target to tag the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm207 committed Jan 31, 2024
1 parent c8f2163 commit 7edfca3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ integration_tests: TEST_FILE=tests/integration_tests/
# test:
# poetry run pytest $(TEST_FILE)

tag:
git branch | grep '* main' > /dev/null || (echo "You must be on the main branch to create a tag" && exit 1)
$(eval VERSION := $(shell poetry version | cut -d' ' -f2))
git tag $(VERSION)
git push origin $(VERSION)

update-weaviate-image:
$(eval DOCKER_COMPOSE_FILE := tests/docker-compose.yml)

Expand Down

0 comments on commit 7edfca3

Please sign in to comment.