# This workflows will upload a Python Package using Twine when a release is created# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registriesname:Upload Python Packageon:release:types:[created]jobs:deploy:runs-on:ubuntu-lateststeps:-uses:actions/checkout@v2-name:Set up Pythonuses:actions/setup-python@v2with:python-version:'3.x'-name:Install dependenciesrun:|python -m pip install --upgrade pippip install setuptools wheel twine-name:Build and publishenv:TWINE_USERNAME:${{ secrets.PYPI_USERNAME }}TWINE_PASSWORD:${{ secrets.PYPI_PASSWORD }}run:|python setup.py sdisttwine upload dist/*