Skip to content

Commit 30f78b8

Browse files
committed
wip
1 parent 570a4dc commit 30f78b8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
# Ensure the version in pyproject.toml is equivalent to the latest git tag
2626
# Read version from pyproject.toml
2727
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}
2830
echo "Package version: $PACKAGE_VERSION"
2931
3032
# Go to github releases to get latest tag

0 commit comments

Comments
 (0)