Skip to content

Commit 5577820

Browse files
committed
add tag-release
1 parent 1ef09b9 commit 5577820

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,17 @@ help-docs:
284284
@echo "3. make ci-docs # Test documentation deployment"
285285
@echo "4. make github-pages # Prepare for GitHub Pages"
286286

287+
# Release target
288+
VERSION := $(shell grep '^version' pyproject.toml | head -1 | sed 's/.*"\(.*\)"/\1/')
289+
290+
.PHONY: tag-release
291+
tag-release:
292+
@echo "Releasing v$(VERSION)..."
293+
git tag v$(VERSION)
294+
git push origin main --tags
295+
gh release create v$(VERSION) --title "v$(VERSION)" --generate-notes
296+
@echo "Done - PyPI publish will run automatically via GitHub Actions."
297+
287298
# Ensure directories exist
288299
$(DOCS_BUILD_DIR):
289300
mkdir -p $(DOCS_BUILD_DIR)

0 commit comments

Comments
 (0)