fix(ci): resolve Python setup errors and update workflow actions
Some checks failed
Integration Tests / integration-test (push) Failing after -25m58s
Some checks failed
Integration Tests / integration-test (push) Failing after -25m58s
- Update integration workflow actions to latest versions (v3->v4, v4->v5) - Fix Python version from '3.x' to '3.12' to resolve permission errors - Update Go version from 1.21 to 1.25 to match go.mod - Add Go module caching for faster builds - Add release workflow for multi-platform binary builds - Add Makefile release target for automated tag creation
This commit is contained in:
25
Makefile
25
Makefile
@@ -172,6 +172,31 @@ docker-down: ## Stop PostgreSQL test database
|
||||
fi
|
||||
@echo "PostgreSQL stopped"
|
||||
|
||||
release: ## Create and push a new release tag (auto-increments patch version)
|
||||
@echo "Creating new release..."
|
||||
@latest_tag=$$(git describe --tags --abbrev=0 2>/dev/null || echo ""); \
|
||||
if [ -z "$$latest_tag" ]; then \
|
||||
version="v1.0.0"; \
|
||||
echo "No existing tags found. Creating first release: $$version"; \
|
||||
commit_logs=$$(git log --pretty=format:"- %s" --no-merges); \
|
||||
else \
|
||||
echo "Latest tag: $$latest_tag"; \
|
||||
version_number=$${latest_tag#v}; \
|
||||
IFS='.' read -r major minor patch <<< "$$version_number"; \
|
||||
patch=$$((patch + 1)); \
|
||||
version="v$$major.$$minor.$$patch"; \
|
||||
echo "Creating new release: $$version"; \
|
||||
commit_logs=$$(git log "$${latest_tag}..HEAD" --pretty=format:"- %s" --no-merges); \
|
||||
fi; \
|
||||
if [ -z "$$commit_logs" ]; then \
|
||||
tag_message="Release $$version"; \
|
||||
else \
|
||||
tag_message="Release $$version\n\n$$commit_logs"; \
|
||||
fi; \
|
||||
git tag -a "$$version" -m "$$tag_message"; \
|
||||
git push origin "$$version"; \
|
||||
echo "Tag $$version created and pushed to remote repository."
|
||||
|
||||
|
||||
help: ## Show this help message
|
||||
@echo "Usage: make [target]"
|
||||
|
||||
Reference in New Issue
Block a user