Add automated release workflow and update tag creation

This commit introduces a new GitHub Actions workflow to automatically create releases when tags matching the pattern 'Release_*' are pushed. It also updates the Makefile to use the new tag format 'Release_<version>' for tagging commits, ensuring consistency with the new release automation.
This commit is contained in:
Eric Coissac
2026-02-05 17:53:43 +01:00
parent cff8135468
commit fe6d74efbf
2 changed files with 156 additions and 3 deletions

View File

@@ -137,10 +137,11 @@ jjpush:
@echo "$(BLUE)→ Documenting version bump commit...$(NC)"
@jj auto-describe
@version=$$(cat version.txt); \
echo "$(BLUE)→ Pushing commits and creating tag v$$version...$(NC)"; \
tag_name="Release_$$version"; \
echo "$(BLUE)→ Pushing commits and creating tag $$tag_name...$(NC)"; \
jj git push --change @; \
git tag -a "v$$version" -m "Release $$version" 2>/dev/null || echo "Tag v$$version already exists"; \
git push origin "v$$version" 2>/dev/null || echo "Tag already pushed"
git tag -a "$$tag_name" -m "Release $$version" 2>/dev/null || echo "Tag $$tag_name already exists"; \
git push origin "$$tag_name" 2>/dev/null || echo "Tag already pushed"
@echo "$(GREEN)✓ Commits and tag pushed to repository$(NC)"
jjfetch: