Skip to content

Commit

Permalink
Ensure both wheels and src dist are uploaded to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Nov 27, 2024
1 parent 65b27a9 commit d631f71
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
python -m build --wheel
- uses: actions/upload-artifact@v4
with:
overwrite: true
name: wheels
path: ./dist/*.whl
build_sdist:
needs: [lint]
Expand All @@ -101,16 +101,20 @@ jobs:
pipx run build --sdist
- uses: actions/upload-artifact@v4
with:
name: src_dist
path: dist/*.tar.gz
overwrite: true
upload_pypi:
needs: [test, build_wheels, build_sdist]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/[email protected]
with:
name: artifact
name: wheels
path: dist
- uses: actions/[email protected]
with:
name: src_dist
path: dist
- uses: pypa/[email protected]
with:
Expand Down

0 comments on commit d631f71

Please sign in to comment.