From f1572393fb662c7b5e91168cfbdc56b6b2f959de Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Wed, 1 Apr 2020 17:24:17 -0400 Subject: [PATCH] Add Github Action for publishing to PyPI --- .github/workflows/upload-pypi.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/upload-pypi.yml diff --git a/.github/workflows/upload-pypi.yml b/.github/workflows/upload-pypi.yml new file mode 100644 index 0000000..8f0f2da --- /dev/null +++ b/.github/workflows/upload-pypi.yml @@ -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 }}