We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 570a4dc commit 30f78b8Copy full SHA for 30f78b8
1 file changed
.github/workflows/publish-pypi.yml
@@ -25,6 +25,8 @@ jobs:
25
# Ensure the version in pyproject.toml is equivalent to the latest git tag
26
# Read version from pyproject.toml
27
PACKAGE_VERSION=$(python -c "import tomllib; f = open('pyproject.toml', 'rb'); data = tomllib.load(f); f.close(); print(data['project']['version'])")
28
+ # Remove leading 'v' if present
29
+ PACKAGE_VERSION=${PACKAGE_VERSION#v}
30
echo "Package version: $PACKAGE_VERSION"
31
32
# Go to github releases to get latest tag
0 commit comments