Skip to content

Commit 6c3081d

Browse files
committed
Add fixes to pypi workflow
1 parent 94d78b8 commit 6c3081d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/build_wheels.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,14 @@ jobs:
179179
id-token: write
180180

181181
steps:
182-
- name: Download all artifacts
183-
run: |
184-
for artifact in $(gh run list-artifacts --run-id ${{ github.run_id }}); do
185-
gh run download-artifact "$artifact" -p ./wheelhouse
186-
done
187-
mkdir -p dist
188-
mv wheelhouse/*.whl dist/
182+
- name: Download wheels
183+
uses: actions/download-artifact@v4
184+
with:
185+
path: dist
186+
merge-multiple: true
187+
189188
- name: Publish distribution to PyPI
190189
uses: pypa/gh-action-pypi-publish@release/v1
191190
env:
192191
TWINE_USERNAME: "__token__"
193-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
192+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)