From 8757fcd599cee117f46562cb03a0563ce605c3ce Mon Sep 17 00:00:00 2001 From: Quentin Haenn <83473151+quentinhaenn@users.noreply.github.com> Date: Wed, 19 Feb 2025 16:34:06 +0100 Subject: [PATCH] Update build_wheels.yml Fix an attestation error --- .github/workflows/build_wheels.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index f85274c..c1ccc82 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -50,25 +50,30 @@ jobs: upload_pypi: needs: [build_wheels, build_sdist] runs-on: ubuntu-latest - environment: pypi + environment: + name: pypi + url: https://pypi.org/p/radius-clustering permissions: id-token: write + attestations: write #if: github.event_name == 'release' && github.event.action == 'published' # or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this) #if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') steps: - - uses: actions/download-artifact@v4 + - name: Download all dists + uses: actions/download-artifact@v4 with: # unpacks all CIBW artifacts into dist/ pattern: cibw-* - path: dist + path: dist/ merge-multiple: true - name: Generate artifact attestations - uses: actions/attest-build-provenance@v1.4.4 + uses: actions/attest-build-provenance@v2 with: subject-path: "dist/*" - - uses: pypa/gh-action-pypi-publish@release/v1 + - name: Publish Distribution to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 #with: # To test: repository-url: https://test.pypi.org/legacy/