Skip to content

Commit 341097c

Browse files
author
Shriyansh Agnihotri
committed
Merge branch 'main' into dev
2 parents bc6aef5 + 64634d5 commit 341097c

File tree

4 files changed

+325
-399
lines changed

4 files changed

+325
-399
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ WORKDIR /testzeus-hercules
1212
COPY pyproject.toml poetry.lock /testzeus-hercules/
1313

1414
# Install Poetry
15-
RUN pip install poetry
15+
RUN pip install poetry==1.8.4
1616

1717
# Install dependencies and the package
1818
RUN poetry install --no-dev

Makefile

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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
8893
build: ## build testzeus_hercules.

0 commit comments

Comments
 (0)