name: Build & publish to pypi on: release: types: [published] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up uv run: curl -LsSf https://astral.sh/uv/0.3.0/install.sh | sh - name: Set up Python 3.10 run: uv python install 3.10 - name: Build package run: uvx --from build pyproject-build --installer uv - name: Publish package run: uvx twine upload -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} dist/* --non-interactive