Skip to content

Commit d61e129

Browse files
authored
Fix publish.yml
1 parent fa01cb4 commit d61e129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
- name: Set version from GitHub tag
3838
run: |
3939
# Extract tag like "v1.2.3" → "1.2.3"
40-
VERSION=${GITHUB_REF#refs/tags/v}
40+
export VERSION="${GITHUB_REF#refs/tags/v}"
4141
echo "Setting [project].version to $VERSION"
4242
python - << 'PY'
4343
from pathlib import Path
4444
from tomlkit import parse, dumps
4545
import os
46-
version = os.environ.get('VERSION')
46+
version = os.environ["VERSION"]
4747
p = Path('pyproject.toml')
4848
doc = parse(p.read_text(encoding='utf-8'))
4949
# Update PEP 621 version

0 commit comments

Comments
 (0)