From dbc7a3c870a0a7c1c115dcfdde0c4a2a89867565 Mon Sep 17 00:00:00 2001 From: William Dutton Date: Tue, 10 Dec 2024 11:23:59 +1000 Subject: [PATCH] fix: publish via pyproject.toml instead of setup.py for version details --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index df99051b..be0f5a20 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,7 +46,7 @@ jobs: run: | TAG_VALUE=${GITHUB_REF/refs\/tags\//} PYTHON_VERSION=$(grep -E '\bversion\s?=\s?"[^"]+"' pyproject.toml | awk -F '"' '{print $2}') - echo "Tag version is [${{ steps.version.outputs.version }}], Python version is [$PYTHON_VERSION]" + echo "Tag version is [$TAG_VALUE], Python version is [$PYTHON_VERSION]" if [ "$TAG_VALUE" != "$PYTHON_VERSION" ]; then echo "Version mismatch; tag version is [$TAG_VALUE] but Python version is [$PYTHON_VERSION]" >> $GITHUB_STEP_SUMMARY exit 1