diff --git a/.github/workflows/release_publish.yml b/.github/workflows/release_publish.yml new file mode 100644 index 0000000..fd83a7b --- /dev/null +++ b/.github/workflows/release_publish.yml @@ -0,0 +1,21 @@ +name: release_publish +on: + # workflow_dispatch: + release: + types: [published] +jobs: + pypi_publish: + name: Deploy to pypi + runs-on: ubuntu-latest + steps: + - name: Check out repo + uses: actions/checkout@v2 + + - name: Build + run: python setup.py sdist bdist_wheel + + - name: Publish to Pypi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}