Skip to content

Commit

Permalink
github-actions: update deploy jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBubel committed Jan 13, 2024
1 parent 3f4ac6b commit 52f58e1
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,24 @@ jobs:

- name: Build c stuff
run: |
/opt/python/cp39-cp39/bin/python3.9 setup.py develop
/opt/python/cp310-cp310/bin/python3.10 setup.py develop
/opt/python/cp311-cp311/bin/python3.11 setup.py develop
/opt/python/cp39-cp39/bin/python setup.py develop
/opt/python/cp310-cp310/bin/python setup.py develop
/opt/python/cp311-cp311/bin/python setup.py develop
/opt/python/cp312-cp312/bin/python setup.py develop
- name: Build wheel files
run: |
/opt/python/cp39-cp39/bin/python3.9 setup.py bdist_wheel
/opt/python/cp310-cp310/bin/python3.10 setup.py bdist_wheel
/opt/python/cp311-cp311/bin/python3.11 setup.py bdist_wheel
/opt/python/cp39-cp39/bin/python setup.py bdist_wheel
/opt/python/cp310-cp310/bin/python setup.py bdist_wheel
/opt/python/cp311-cp311/bin/python setup.py bdist_wheel
/opt/python/cp312-cp312/bin/python setup.py bdist_wheel
- name: Repair wheel files
run: |
/opt/python/cp39-cp39/bin/auditwheel repair dist/*cp39-cp39-linux_x86_64.whl
/opt/python/cp310-cp310/bin/auditwheel repair dist/*cp310-cp310-linux_x86_64.whl
/opt/python/cp311-cp311/bin/auditwheel repair dist/*cp311-cp311-linux_x86_64.whl
/opt/python/cp312-cp312/bin/auditwheel repair dist/*cp312-cp312-linux_x86_64.whl
- name: List contents of dist
run: ls -R dist
Expand Down Expand Up @@ -66,16 +69,31 @@ jobs:
pip install --upgrade pip
pip install twine
- name: Download build artifacts
- name: Download build artifacts for windows and mac wheels
uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true

- name: Download build artifacts for manylinux wheels
uses: actions/download-artifact@v4
with:
path: wheelhouse
merge-multiple: true

- name: Inspect dist files
run: |
ls -R dist
- name: Inspect wheelhouse files
run: |
ls -R wheelhouse
- name: Merge wheel files
run: |
cp dist/* wheelhouse/
ls -R wheelhouse
- name: Upload to PyPI using twine
run: |
twine upload --skip-existing wheelhouse/*
Expand Down

0 comments on commit 52f58e1

Please sign in to comment.