@@ -72,17 +72,22 @@ virtualenv: ## Create a virtual environment.
7272 poetry install --all-extras && exit
7373
7474.PHONY : release
75- release : # # Create a new tag for release.
75+ release : # # Create a new tag for release.
7676 @echo " WARNING: This operation will create a version tag and push to GitHub"
77- @read -p " Version bump (patch, minor, major)? : " BUMP && \
78- poetry version $$ BUMP
79- @VERSION=$(shell poetry version -s) && \
80- git add pyproject.toml && \
81- git commit -m " release: version $$ VERSION 🚀" && \
82- echo " creating git tag : $$ VERSION" && \
83- git tag $$ VERSION
84- @git push -u origin HEAD --tags
85- @echo " Github Actions will detect the new tag and release the new version."
77+ @ ( \
78+ read -p " Version bump (patch, minor, major)? : " BUMP; \
79+ poetry version $$ BUMP; \
80+ read -p " Do you want to continue? (y/n) : " CONTINUE; \
81+ [ $$ CONTINUE = " y" ] || exit 1; \
82+ VERSION=$$(poetry version -s ) ; \
83+ echo " New Version: $$ VERSION" ; \
84+ git add pyproject.toml; \
85+ git commit -m " release: version $$ VERSION 🚀" ; \
86+ echo " creating git tag : $$ VERSION" ; \
87+ git tag $$ VERSION; \
88+ git push -u origin HEAD --tags; \
89+ echo " GitHub Actions will detect the new tag and release the new version." ; \
90+ )
8691
8792.PHONY : build
8893build : # # build testzeus_hercules.
0 commit comments