Skip to content

Commit 857a626

Browse files
committed
Get version in proper format.
1 parent 883932a commit 857a626

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pypi.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
- name: Build the package
2222
run: |
2323
# Extract version number from github.ref and write to version.txt
24-
echo "${{ github.ref }}" | sed 's/refs\/tags\///' > func_adl/version.txt
24+
version=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///')
25+
echo "__version__=\"$v\"" > func_adl/version.txt
2526
hatch build
2627
- name: Publish a func_adl to PyPI
2728
uses: pypa/[email protected]

0 commit comments

Comments
 (0)