Skip to content

Commit

Permalink
Merge pull request #11 from Stoops-ML/publish
Browse files Browse the repository at this point in the history
Publish to pypi source distribution only
  • Loading branch information
Stoops-ML authored Aug 25, 2024
2 parents 8b583bb + 2485e88 commit 4e72753
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 4e72753

Please sign in to comment.