Skip to content

Commit

Permalink
chore: download all artifacts and extract the wheels into a dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Sep 24, 2024
1 parent 85939e5 commit 39c753e
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,23 @@ jobs:
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
merge-multiple: true
path: all_artifacts

- name: Display structure of downloaded artifacts
run: ls -R all_artifacts

- name: Prepare artifacts for upload
run: |
mkdir -p dist
find all_artifacts -name '*.whl' -exec cp {} dist/ \;
find all_artifacts -name '*.tar.gz' -exec cp {} dist/ \;
echo "Files prepared for upload:"
ls -la dist
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_PASSWORD }}
uses: PyO3/maturin-action@v1
with:
command: upload
args: --skip-existing *
args: --skip-existing dist/*

0 comments on commit 39c753e

Please sign in to comment.