Skip to content

Commit

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

0 comments on commit b61c6c9

Please sign in to comment.