diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fabc86e..d2a7af4 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 }}-${{ 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 @@ -271,9 +272,12 @@ jobs: steps: - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 with: - pattern: dist-* - path: dist - merge-multiple: true + pattern: "dist-${{ inputs.targets }}-${{ github.run_id }}-${{ github.run_attempt }}" + path: dist + merge-multiple: false + + + - uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 name: Upload to PyPI if: ${{ needs.targets.outputs.upload_to_pypi == 'true' }}