feat: Trigger MCP publish on main and bump version#965
Conversation
Update publish workflow to trigger on pushes to the main branch (when sdks/mcp/pyproject.toml changes) and enable manual workflow_dispatch instead of the previous tag-based trigger. Also bump openrag-mcp version from 0.1.0 to 0.1.1.
There was a problem hiding this comment.
Pull request overview
This PR updates the MCP publish automation to run from main changes (and manually via workflow_dispatch) rather than tag pushes, and bumps the openrag-mcp package version.
Changes:
- Bump
openrag-mcpversion insdks/mcp/pyproject.tomlfrom0.1.0to0.1.1. - Change the GitHub Actions publish workflow trigger from tag-based to
pushonmain(path-filtered) plusworkflow_dispatch.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
sdks/mcp/pyproject.toml |
Bumps the package version to 0.1.1. |
.github/workflows/publish-mcp.yml |
Adjusts workflow triggers to publish from main changes and allow manual dispatch. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| on: | ||
| push: | ||
| tags: | ||
| - 'mcp-v*' | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'sdks/mcp/pyproject.toml' | ||
| workflow_dispatch: |
There was a problem hiding this comment.
The workflow trigger was changed away from tags, but the job still derives the package version from GITHUB_REF_NAME by stripping the mcp-v prefix and then sed-writes that into pyproject.toml. On a push to main (or workflow_dispatch), this will set the version to main (or whatever ref name), producing an invalid version and breaking publish. Update the workflow to get the version from sdks/mcp/pyproject.toml (or accept an explicit workflow_dispatch input) and remove the tag-based extraction/update steps accordingly.
| [project] | ||
| name = "openrag-mcp" | ||
| version = "0.1.0" | ||
| version = "0.1.1" |
There was a problem hiding this comment.
pyproject.toml bumps openrag-mcp to 0.1.1, but sdks/mcp/src/openrag_mcp/__init__.py still defines __version__ = "0.1.0". This leaves the runtime-reported version out of sync with the published package metadata; update __version__ (or remove it if you want a single source of truth).
| version = "0.1.1" | |
| version = "0.1.0" |
Update publish workflow to trigger on pushes to the main branch (when sdks/mcp/pyproject.toml changes) and enable manual workflow_dispatch instead of the previous tag-based trigger. Also bump openrag-mcp version from 0.1.0 to 0.1.1.