name: Publish on: [workflow_dispatch] permissions: contents: read jobs: publish_pytest: uses: ./.github/workflows/pytest.yml pypi_publish: runs-on: ubuntu-latest needs: [ publish_pytest ] steps: - name: Checkout uses: actions/checkout@v6 - name: Build sdist uses: actions/setup-python@v6 with: python-version: "3.12" - name: Install build run: pip install build - name: Build a binary wheel and a source tarball run: python -m build - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: skip-existing: true password: ${{ secrets.PYPI_API_TOKEN }} env: GITHUB_WORKFLOW_REF: 1.10.1