Skip to content

Commit 68691c4

Browse files
committed
Fixed tag parsing
1 parent 7d2969c commit 68691c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ jobs:
5353
# GitHub Release tag and the package
5454
- name: Verify version tag
5555
run: |
56-
# Extract version from the GitHub release tag (e.g., v1.2.3 -> 1.2.3)
57-
TAG_VERSION=${GITHUB_REF#refs/tags/v}
56+
# Extract version from the GitHub release tag (e.g., v1.2.3 -> 1.2.3 or 1.2.3 -> 1.2.3)
57+
TAG_VERSION=${GITHUB_REF#refs/tags/}
58+
TAG_VERSION=${TAG_VERSION#v}
5859
5960
# Extract version from pyproject.toml [project] section
6061
PACKAGE_VERSION=$(python << 'EOF'

0 commit comments

Comments
 (0)