diff --git a/.github/workflows/pip-upload.yml b/.github/workflows/pip-upload.yml new file mode 100644 index 0000000..fbd75e1 --- /dev/null +++ b/.github/workflows/pip-upload.yml @@ -0,0 +1,33 @@ +name: Publish +on: + release: + types: [published] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Prepare repo + uses: actions/checkout@master + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + . + - name: Upload + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file