Skip to content

Commit

Permalink
test combined artifact upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrohwer committed Feb 15, 2024
1 parent eb2f73e commit 1285cf0
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/cibuildwheel.yml
Expand Up @@ -12,8 +12,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-12]
# os: [ubuntu-latest, windows-latest, macos-12]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4
Expand All @@ -26,11 +26,6 @@ jobs:
- name: Build wheels for CPython
uses: pypa/cibuildwheel@v2.16.5

# - uses: actions/upload-artifact@v4
# with:
# name: wheels_and_tarball
# path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
Expand All @@ -47,12 +42,8 @@ jobs:
pip install build
python -m build -s .
# - uses: actions/upload-artifact@v4
# with:
# name: wheels_and_tarball
# path: dist/*.tar.gz

upload_artifacts:
needs: [build_wheels, build_sdist]
name: Upload build artifacts
runs-on: ubuntu-latest
steps:
Expand All @@ -64,7 +55,7 @@ jobs:
./wheelhouse/*.whl
upload_pypi:
needs: [build_wheels, build_sdist]
needs: build_artifacts
runs-on: ubuntu-latest
# to publish when a GitHub Release is created:
if: github.event_name == 'release' && github.event.action == 'released'
Expand Down

0 comments on commit 1285cf0

Please sign in to comment.