Skip to content

Commit

Permalink
.github/workflows/package_and_publish.yml: fix artifact name conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
fhs committed Jan 5, 2025
1 parent 82bb6bc commit 6de48b3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/package_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
cp dist/*.whl wheelhouse
- uses: actions/upload-artifact@v4
with:
name: wheelhouse
name: wheelhouse-${{ matrix.os }}
path: wheelhouse

publish:
Expand All @@ -99,7 +99,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: wheelhouse
name: wheelhouse-sdist
path: wheelhouse

- name: Publish SDIST to PyPI # there are some problems if sdist is not pushed first
Expand All @@ -111,10 +111,11 @@ jobs:
packages_dir: wheelhouse/

- name: Download all the wheels
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: wheelhouse
path: ./wheelhouse/
pattern: wheelhouse-*
merge-multiple: true

- name: Publish a Python distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 6de48b3

Please sign in to comment.