From b8b06ca7c9e2b469b6b07a3c695d6305be23f0e6 Mon Sep 17 00:00:00 2001 From: schroedtert Date: Mon, 29 Apr 2024 14:52:04 +0200 Subject: [PATCH] Use better naming for the artifacts : -- --- .github/workflows/cibuildwheel.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index b82f70e55..d2086319a 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -236,9 +236,22 @@ jobs: CIBW_BUILD: ${{ matrix.cibw_build }} CIBW_ARCHS: ${{ matrix.cibw_archs }} + - name: Extract Python Version (Unix/Mac) + shell: bash + run: echo "PYTHON_VERSION=$(echo ${{ matrix.cibw_build }} | cut -d'-' -f1)" >> $GITHUB_ENV + if: runner.os != 'Windows' + + - name: Extract Python Version (Windows) + if: runner.os == 'Windows' + shell: pwsh + run: | + $pythonVersion = "${{ matrix.cibw_build }}" -split '-' | Select-Object -First 1 + $pythonVersion = $pythonVersion.Trim() + echo "PYTHON_VERSION=$pythonVersion" | Out-File -Append -FilePath $env:GITHUB_ENV + - uses: actions/upload-artifact@v4 with: - name: python-packages-${{ matrix.os }}-${{ matrix.cibw_archs }}-${{ strategy.job-index }} + name: python-packages-${{ matrix.os }}-${{ matrix.cibw_archs }}-${{ env.PYTHON_VERSION }} path: ./wheelhouse/*.whl if-no-files-found: error