diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..be5f0fe --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Release to PyPI + +on: + release: + types: [published] + +jobs: + build: + name: Build dist & publish + runs-on: ubuntu-18.04 + + steps: + - uses: actions/checkout@v1 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.x' + + - name: Install build dependencies & build + run: | + python -m pip install --upgrade pip + pip install setuptools wheel + python setup.py sdist bdist_wheel + - name: Publish package + uses: pypa/gh-action-pypi-publish@v1.0.0a0 + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file