1 # This workflows will upload a Python Package using Twine when a release is created
2 # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
4 name: Upload Python Package
14 runs-on: ubuntu-latest
17 - uses: actions/checkout@v2
19 uses: actions/setup-python@v2
22 - name: Install dependencies
24 python -m pip install --upgrade pip
25 pip install setuptools wheel twine
26 - name: Build and publish
28 TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
29 TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
32 python setup.py sdist bdist_wheel