From c2c3f8ba10641532fa78b4971bc95fec361c8a28 Mon Sep 17 00:00:00 2001 From: Jeff Verkoeyen Date: Thu, 11 Dec 2025 14:34:36 -0500 Subject: [PATCH] Pull version from tag. --- .github/workflows/publish.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c0a68c5..56fb759 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -55,6 +55,17 @@ jobs: - name: Install build tools run: pip install build + - name: Extract version from tag + id: get_version + run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT + + - name: Update package version + working-directory: packages/mcp-server + run: | + sed -i 's/^version = ".*"/version = "${{ steps.get_version.outputs.VERSION }}"/' pyproject.toml + echo "Updated version to ${{ steps.get_version.outputs.VERSION }}" + grep "^version" pyproject.toml + - name: Build package working-directory: packages/mcp-server run: python -m build