From 777f1cbc650a157b048bb8229a6b58ea048ccbde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Verg=C3=A9s?= Date: Sat, 22 Nov 2025 21:14:05 +0100 Subject: [PATCH] fix: remove v from tag when looking for the version --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5c8f6d..716f43e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,7 +68,10 @@ jobs: PACKAGE_IMPORT_NAME=$(echo $PACKAGE_NAME | tr '-' '_') # Install from TestPyPI, falling back to PyPI for dependencies - pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ "$PACKAGE_NAME==${{ needs.release-please.outputs.tag_name }}" + # Tags are v-prefixed. Versions are not. + TAG_NAME="${{ needs.release-please.outputs.tag_name }}" + VERSION="${TAG_NAME#v}" + pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ "$PACKAGE_NAME==$VERSION" # Simple import check python -c "import $PACKAGE_IMPORT_NAME; print(f'Successfully imported $PACKAGE_IMPORT_NAME version {$PACKAGE_IMPORT_NAME.__version__}')"