diff --git a/.github/workflows/pypi_deploy.yml b/.github/workflows/pypi_deploy.yml new file mode 100644 index 000000000..9779c18ef --- /dev/null +++ b/.github/workflows/pypi_deploy.yml @@ -0,0 +1,27 @@ +name: Deploy 🐍 pkg PROPOSAL + +on: + page_build: + release: + types: + - created + +jobs: + + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install build + run: python -m pip install build + - name: Build source tarball + run: python -m build -s + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.PYPI_API_TOKEN }}