name: Python package publish
on:
  release:
    types: [created]
  workflow_dispatch:
jobs:
  build_wheels:
    name: Build and publish package / wheel
    runs-on: ubuntu-latest
    permissions:
      id-token: write  # IMPORTANT: this permission is mandatory for trusted publishing

    steps:
      - uses: actions/checkout@v6
      - name: Set up Python
        uses: actions/setup-python@v6
        with:
          python-version: '>=3.10'
      - name: Build package / wheel
        run: |
          python -m pip install build
          python -m build
      - name: Publish package distributions to PyPI
        uses: pypa/gh-action-pypi-publish@release/v1



