File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 11name : Publish
22on :
33 push :
4- branches : [main]
4+ tags :
5+ - " v*"
56 strategy :
67 matrix :
78 python-version : ["3.11"]
5758 steps :
5859 - uses : actions/checkout@v4
5960
61+ - name : Update version from tag
62+ run : |
63+ # Strip 'v' prefix from tag and update version.py
64+ VERSION=${GITHUB_REF#refs/tags/v}
65+ echo "__version__ = \"${VERSION}\"" > mcp_shell_server/version.py
66+
6067 - name : Set up Python ${{ matrix.python-version }}
6168 uses : actions/setup-python@v5
6269 with :
Original file line number Diff line number Diff line change 1+ __version__ = "0.0.0-dev"
Original file line number Diff line number Diff line change 11[project ]
22name = " mcp-shell-server"
3- version = " 0.1.0"
43description = " MCP Shell Server - Execute shell commands via MCP protocol"
54authors = [
65 { name = " tumf" }
@@ -12,6 +11,7 @@ dependencies = [
1211requires-python = " >=3.11"
1312readme = " README.md"
1413license = { text = " MIT" }
14+ dynamic = [" version" ]
1515
1616[project .scripts ]
1717mcp-shell-server = " mcp_shell_server:main"
@@ -62,4 +62,7 @@ target-version = ['py311']
6262
6363[tool .isort ]
6464profile = " black"
65- line_length = 88
65+ line_length = 88
66+
67+ [tool .hatch .version ]
68+ path = " mcp_shell_server/version.py"
You can’t perform that action at this time.
0 commit comments