Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: python -m build --sdist

- name: Upload sdist artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sdist-artifact
path: dist/
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
run: python -m build --wheel

- name: Upload wheel artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheel-artifact-${{ matrix.os }}-${{ matrix.python-version }}
path: dist/
Expand All @@ -66,15 +66,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download all build artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
uses: actions/download-artifact@v4

- name: Combine artifacts and list
run: |
mkdir dist
shopt -s globstar
mv artifacts/**/*.whl artifacts/**/*.tar.gz dist/
find . -path ./dist -prune -o -type f \( -name "*.whl" -o -name "*.tar.gz" \) -exec mv -t dist/ {} +
ls -R dist

- name: Publish package to PyPI
Expand Down