Skip to content

Commit

Permalink
Publish to pypi source distribution only
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Stoops committed Aug 25, 2024
1 parent 5205fc8 commit 367cf89
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build a source tarball
run: |
python3 -m pip install numpy
python3 setup.py sdist
- name: Install pypa/build
run: python3 -m pip install build
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
Expand All @@ -44,6 +44,6 @@ jobs:
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
path: dist/*.tar.gz # only upload source distributions
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 367cf89

Please sign in to comment.