diff --git a/.github/workflows/pypi-to-upload.yaml b/.github/workflows/pypi-to-upload.yaml new file mode 100644 index 0000000..00067c1 --- /dev/null +++ b/.github/workflows/pypi-to-upload.yaml @@ -0,0 +1,30 @@ +name: pypi-to-upload + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Install dependencies + run: | + python -m pip install -U pip setuptools wheel build + - name: Build package + run: python -m build -s -w + - name: Publish package to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}