From 5ecb7f2dc8f46f293ea91b145800a73275d32cb6 Mon Sep 17 00:00:00 2001 From: Aditya Kumar Pandey Date: Sat, 6 Dec 2025 15:04:53 +0530 Subject: [PATCH 1/4] Update publish.yml --- .github/workflows/publish.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fabc86e..412449c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -209,8 +209,8 @@ jobs: if: | needs.targets.outputs.upload_to_pypi == 'true' || inputs.upload_to_anaconda with: - name: "dist-${{ matrix.artifact-name }}" - path: dist/* + name: "dist-${{ matrix.target }}-${{ matrix.CIBW_ARCHS }}" + path: dist/* build_sdist: name: Build source distribution @@ -270,10 +270,11 @@ jobs: needs.build_sdist.result != 'failure' steps: - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 - with: - pattern: dist-* - path: dist - merge-multiple: true + with: + pattern: dist-* + path: dist + merge-multiple: true + - uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 name: Upload to PyPI if: ${{ needs.targets.outputs.upload_to_pypi == 'true' }} From efd749ab893c7bd44f9683216afa3a61c6939e20 Mon Sep 17 00:00:00 2001 From: Aditya Kumar Pandey Date: Sun, 7 Dec 2025 14:24:52 +0530 Subject: [PATCH 2/4] Update publish.yml Scope artifacts by run id/attempt --- .github/workflows/publish.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 412449c..d1deda7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -209,8 +209,8 @@ jobs: if: | needs.targets.outputs.upload_to_pypi == 'true' || inputs.upload_to_anaconda with: - name: "dist-${{ matrix.target }}-${{ matrix.CIBW_ARCHS }}" - path: dist/* + name: "dist-${{ matrix.target }}-${{ matrix.CIBW_ARCHS }}-${{ github.run_id }}-${{ github.run_attempt }}" + path: dist/* build_sdist: name: Build source distribution @@ -254,8 +254,9 @@ jobs: if: | needs.targets.outputs.upload_to_pypi == 'true' || inputs.upload_to_anaconda with: - name: dist-sdist - path: dist/* + name: dist-sdist-${{ github.run_id }}-${{ github.run_attempt }} + path: dist/* + upload: name: Upload @@ -270,10 +271,11 @@ jobs: needs.build_sdist.result != 'failure' steps: - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 - with: - pattern: dist-* - path: dist - merge-multiple: true + with: + pattern: dist-*-${{ github.run_id }}-${{ github.run_attempt }} + path: dist + merge-multiple: true + - uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 name: Upload to PyPI From f94963294172509bcd4380c98f5ab19396585227 Mon Sep 17 00:00:00 2001 From: Aditya Kumar Pandey Date: Sun, 7 Dec 2025 16:31:34 +0530 Subject: [PATCH 3/4] Update publish.yml --- .github/workflows/publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d1deda7..89d47b7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -209,8 +209,8 @@ jobs: if: | needs.targets.outputs.upload_to_pypi == 'true' || inputs.upload_to_anaconda with: - name: "dist-${{ matrix.target }}-${{ matrix.CIBW_ARCHS }}-${{ github.run_id }}-${{ github.run_attempt }}" - path: dist/* + name: "dist-${{ matrix.target }}-${{ matrix.CIBW_ARCHS }}-${{ github.run_id }}-${{ github.run_attempt }}" + path: dist/* build_sdist: name: Build source distribution @@ -254,8 +254,8 @@ jobs: if: | needs.targets.outputs.upload_to_pypi == 'true' || inputs.upload_to_anaconda with: - name: dist-sdist-${{ github.run_id }}-${{ github.run_attempt }} - path: dist/* + name: "dist-sdist-${{ github.run_id }}-${{ github.run_attempt }}" + path: dist/* upload: @@ -272,7 +272,7 @@ jobs: steps: - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 with: - pattern: dist-*-${{ github.run_id }}-${{ github.run_attempt }} + pattern: "dist-*-${{ github.run_id }}-${{ github.run_attempt }}" path: dist merge-multiple: true From 3b541571b574e1a3048056814726b7d01c4ca69c Mon Sep 17 00:00:00 2001 From: Aditya Kumar Pandey Date: Sun, 7 Dec 2025 21:07:24 +0530 Subject: [PATCH 4/4] Update publish.yml --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 89d47b7..d2a7af4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -272,9 +272,10 @@ jobs: steps: - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 with: - pattern: "dist-*-${{ github.run_id }}-${{ github.run_attempt }}" + pattern: "dist-${{ inputs.targets }}-${{ github.run_id }}-${{ github.run_attempt }}" path: dist - merge-multiple: true + merge-multiple: false + - uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0