We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbdf1b6 commit 7e2d374Copy full SHA for 7e2d374
1 file changed
.github/workflows/python-publish.yml
@@ -30,9 +30,14 @@ jobs:
30
- name: Install dependencies
31
run: |
32
python -m pip install --upgrade pip
33
- pip install build
+ pip install build pkginfo
34
- name: Build package
35
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
41
- name: Publish package
42
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
43
with:
0 commit comments