Skip to content

Commit 7e2d374

Browse files
authored
Update python-publish.yml
1 parent cbdf1b6 commit 7e2d374

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/python-publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,14 @@ jobs:
3030
- name: Install dependencies
3131
run: |
3232
python -m pip install --upgrade pip
33-
pip install build
33+
pip install build pkginfo
3434
- name: Build package
3535
run: python -m build
36+
- name: Get version
37+
run: |
38+
TAG_NAME="$(pkginfo -f version --single dist/*.tar.gz)"
39+
git tag $TAG_NAME
40+
git push origin $TAG_NAME
3641
- name: Publish package
3742
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
3843
with:

0 commit comments

Comments
 (0)