2020-02-20 13:59:00 -05:00
# 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-registries
2019-08-25 01:13:29 +01:00
name : Upload Python Package
2019-09-05 12:10:28 +01:00
on :
release :
types : [ created]
2019-08-25 01:13:29 +01:00
jobs :
deploy :
2020-02-21 12:55:06 -05:00
2019-08-25 01:13:29 +01:00
runs-on : ubuntu-latest
2020-02-21 12:55:06 -05:00
2019-08-25 01:13:29 +01:00
steps :
2019-12-24 14:22:22 -08:00
- uses : actions/checkout@v2
2019-08-25 01:13:29 +01:00
- name : Set up Python
2020-05-12 10:49:36 +02:00
uses : actions/setup-python@v2
2019-08-25 01:13:29 +01:00
with :
python-version : '3.x'
- name : Install dependencies
run : |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name : Build and publish
env :
TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
run : |
python setup.py sdist bdist_wheel
twine upload dist/*