Fix publish yml

This commit is contained in:
Romain Beaumont
2022-04-09 00:18:41 +02:00
committed by Ross Wightman
parent b7ce3897a2
commit 800104efa7

View File

@@ -25,6 +25,8 @@ jobs:
- name: Release
if: ${{ steps.regex-match.outputs.match != '' }}
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.regex-match.outputs.group1 }}
- name: Build and publish
if: ${{ steps.regex-match.outputs.match != '' }}
env:
@@ -32,4 +34,4 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
twine upload dist/*