Add Github Action for publishing to PyPI

This commit is contained in:
Tudor Brindus 2020-04-01 17:24:17 -04:00
parent f2bd3911fd
commit f1572393fb

20
.github/workflows/upload-pypi.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: upload-pypi
on:
push:
tags: v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Create sdist
run: python setup.py sdist
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.0.0a0
with:
user: __token__
password: ${{ secrets.pypi_password }}