Skip to content

Commit

Permalink
Fix upload artefacts steps in GH Actions workflows
Browse files Browse the repository at this point in the history
Version 4 of 'actions/download-artifact' introduced a breaking change
which broke the 'build-wheels' job.

See actions/upload-artifact#478.
  • Loading branch information
SkypLabs committed Apr 22, 2024
1 parent 8ab53ac commit 81df667
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- name: Upload artefacts to GitHub
uses: actions/upload-artifact@v4
with:
name: dist-packages
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: wheelhouse/*.whl

build-sdist:
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
- name: Upload artefacts to GitHub
uses: actions/upload-artifact@v4
with:
name: dist-packages
name: cibw-sdist
path: dist/*.tar.gz

publish-to-test-pypi:
Expand All @@ -129,8 +129,9 @@ jobs:
- name: Download artefacts
uses: actions/download-artifact@v4
with:
name: dist-packages
name: cibw-*
path: dist
merge-multiple: true

- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@v1.8.14
Expand All @@ -153,8 +154,9 @@ jobs:
- name: Download artefacts
uses: actions/download-artifact@v4
with:
name: dist-packages
name: cibw-*
path: dist
merge-multiple: true

- name: Publish to test PyPI
uses: pypa/gh-action-pypi-publish@v1.8.14
Expand Down

0 comments on commit 81df667

Please sign in to comment.