Skip to content

Commit

Permalink
fixing makefile to get proper publish tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Shriyansh Agnihotri committed Jan 8, 2025
1 parent 46b650b commit 5576f25
Show file tree
Hide file tree
Showing 4 changed files with 324 additions and 398 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WORKDIR /testzeus-hercules
COPY pyproject.toml poetry.lock /testzeus-hercules/

# Install Poetry
RUN pip install poetry
RUN pip install poetry==1.8.4

# Install dependencies and the package
RUN poetry install --no-dev
Expand Down
25 changes: 15 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,22 @@ virtualenv: ## Create a virtual environment.
poetry install --all-extras && exit

.PHONY: release
release: ## Create a new tag for release.
release: ## Create a new tag for release.
@echo "WARNING: This operation will create a version tag and push to GitHub"
@read -p "Version bump (patch, minor, major)? : " BUMP && \
poetry version $$BUMP
@VERSION=$(shell poetry version -s) && \
git add pyproject.toml && \
git commit -m "release: version $$VERSION 🚀" && \
echo "creating git tag : $$VERSION" && \
git tag $$VERSION
@git push -u origin HEAD --tags
@echo "Github Actions will detect the new tag and release the new version."
@( \
read -p "Version bump (patch, minor, major)? : " BUMP; \
poetry version $$BUMP; \
read -p "Do you want to continue? (y/n) : " CONTINUE; \
[ $$CONTINUE = "y" ] || exit 1; \
VERSION=$$(poetry version -s); \
echo "New Version: $$VERSION"; \
git add pyproject.toml; \
git commit -m "release: version $$VERSION 🚀"; \
echo "creating git tag : $$VERSION"; \
git tag $$VERSION; \
git push -u origin HEAD --tags; \
echo "GitHub Actions will detect the new tag and release the new version."; \
)

.PHONY: build
build: ## build testzeus_hercules.
Expand Down
Loading

0 comments on commit 5576f25

Please sign in to comment.