Skip to content

Commit cd392f6

Browse files
committed
build: extract version from dist file
1 parent eef6070 commit cd392f6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
- name: Extract package version
3737
id: get_version
3838
run: |
39-
VERSION=$(uvx -q hatch version)
39+
FILE=$(ls dist/getstream-*.tar.gz | head -1)
40+
VERSION=$(basename "$FILE" .tar.gz | sed 's/^getstream-//')
4041
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
4142
4243
- name: Publish to PyPI (Trusted Publishing)

0 commit comments

Comments
 (0)