Skip to content

Commit

Permalink
Merge pull request #681 from jjshoots/master
Browse files Browse the repository at this point in the history
fix build publish
  • Loading branch information
jjshoots authored Apr 29, 2022
2 parents 1c45ee2 + c5980bb commit e230f4d
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,36 +35,23 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: python -m pip install --upgrade setuptools wheel
- name: Build wheels
uses: pypa/cibuildwheel@v2.3.1
env:
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform }}
CIBW_ARCHS: all
CIBW_BUILD_VERBOSITY: 1
run: python setup.py sdist bdist_wheel
- name: Store wheels
uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

build-src:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build src
run: |
python -m pip install --upgrade pip
pip install wheel
python setup.py sdist
- name: Store src
uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz
path: dist

publish:
runs-on: ubuntu-latest
needs:
- build-wheels
- build-src
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- name: Download dists
Expand Down

0 comments on commit e230f4d

Please sign in to comment.