Skip to content

Commit f820bb3

Browse files
committed
update release workflow
1 parent 22168f8 commit f820bb3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ jobs:
2626
run: |
2727
pip install Cython
2828
pip install wheel
29-
python setup.py bdist_wheel
29+
tag=${{ github.ref_name }}
30+
ver=${tag:1}
31+
RELEASE_VERSION=$ver python setup.py bdist_wheel
3032
3133
- name: Publish distribution to pypi repo
3234
run: |
3335
pip install twine
34-
twine upload dist/* -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASSWORD }} --repository pypi
36+
twine upload dist/* -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASSWORD }} --repository pypi

0 commit comments

Comments
 (0)