Skip to content

Commit

Permalink
new upload+download actions changed behavior wrt multiple artifacts o…
Browse files Browse the repository at this point in the history
…f same name

Adjust by explicitly naming uploads and merging in downloads. It's also not possible to use download v3 for upload v4 artifacts
  • Loading branch information
renefritze committed Jan 10, 2024
1 parent ae8a82e commit 8b47139
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ jobs:
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
with:
path: ./wheelhouse/*.whl
name: archive_wheels_${{ matrix.os }}_${{ matrix.arch }}_${{ matrix.skip }}

build-sdist:
name: Build source distribution
Expand All @@ -137,6 +138,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
name: archive_sdist

test-sdist:
name: Test build from source distribution
Expand All @@ -151,9 +153,9 @@ jobs:
with:
python-version: '3.9'

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
name: archive_sdist
path: sdist

- name: Install from SDist
Expand All @@ -177,10 +179,11 @@ jobs:
if: github.repository_owner == 'ssciwr'

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
name: archive*
path: dist
merge-multiple: true

- name: Upload to PyPI
uses: pypa/[email protected]
Expand Down

0 comments on commit 8b47139

Please sign in to comment.