Update build.yml

This commit is contained in:
Zied Aouini 2019-12-29 08:30:11 +01:00 committed by GitHub
parent 3881119a36
commit aebe7cd5f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,4 +51,9 @@ jobs:
codecov -t ${{ secrets.CODECOV_TOKEN }}
- name: Publish on Pypi
if: startsWith(github.ref, 'refs/tags/')
run: echo "tag ${{ github.ref }}"
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*