Skip to content

Commit

Permalink
Merge pull request #403 from joanimato/pypi-test
Browse files Browse the repository at this point in the history
fix pypi upload github action
  • Loading branch information
joanimato authored Feb 26, 2025
2 parents 7bb167d + a593b6d commit 8eb4040
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/pypi-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ jobs:
rm -rf boost_1_*
rm -rf swig-4*
- name: Upload artifacts for inspection
if: ${{ env.ACT }} != 'true' # Skip this step if running locally using 'act'
uses: actions/upload-artifact@v4
with:
name: wheels
Expand Down Expand Up @@ -157,11 +156,20 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip setuptools twine
- name: Download artifacts
- name: Download wheel artifacts
uses: actions/download-artifact@v4
with:
name: dist
name: wheels
path: ./dist
- name: Download sdist artifacts
uses: actions/download-artifact@v4
with:
name: sdist
path: ./dist
- name: Verify dist directory
run: ls -lah dist
- name: Check packages before upload
run: twine check dist/*
- name: Publish sdist and wheel to PyPI
run: |
twine upload dist/*
Expand Down

0 comments on commit 8eb4040

Please sign in to comment.