Skip to content

Commit ca93893

Browse files
committed
fix publish
1 parent 7524c0a commit ca93893

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ jobs:
2626
- name: Extract version from tag
2727
id: get_version
2828
run: |
29-
# Remove 'v' prefix if present and set as version
30-
VERSION=${GITHUB_REF#refs/tags/v}
29+
# Extract version from tag (remove 'refs/tags/' and optional 'v' prefix)
30+
TAG_NAME=${GITHUB_REF#refs/tags/}
31+
VERSION=${TAG_NAME#v}
3132
echo "version=$VERSION" >> $GITHUB_OUTPUT
3233
3334
- name: Update version in pyproject.toml

0 commit comments

Comments
 (0)