name: Publish packages on: release: types: [published] env: UV_VERSION: 0.4.5 jobs: build-n-publish: name: Build release packages runs-on: ubuntu-latest permissions: # for trusted publishing id-token: write steps: - uses: actions/checkout@master - name: Setup python uses: actions/setup-python@v4 with: python-version: "3.x" - name: Install uv run: |- pipx install uv==${{ env.UV_VERSION }} --python "${{ steps.setup-python.outputs.python-path }}" - name: Build a binary wheel and a source tarball run: uv build - name: Publish release on pypi uses: pypa/gh-action-pypi-publish@release/v1