Skip to content

Commit

Permalink
ci: Restore steps performed only for releases
Browse files Browse the repository at this point in the history
Also add a new step that runs unconditionally and requires that all of
the cibuildwheel steps have succeeded, so that we can add just one
required status check instead of N.

Signed-off-by: Matt Wozniski <[email protected]>
  • Loading branch information
godlygeek committed Jan 9, 2024
1 parent b8564cf commit f7df40d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,17 @@ jobs:
name: macosx_${{ matrix.cibw_arch }}-wheels
path: ./wheelhouse/*.whl

build_and_test_wheels:
name: Build and test wheels
needs: [build_linux_wheels, build_macosx_wheels]
runs-on: ubuntu-latest
steps:
- run: echo "Done!"

upload_pypi:
needs: [build_linux_wheels, build_macosx_wheels, build_sdist]
needs: [build_and_test_wheels, build_sdist]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
with:
Expand All @@ -146,7 +154,11 @@ jobs:
mv dist/*-wheels/*.whl dist/
rmdir dist/{sdist,*-wheels}
rm -r dist/tests
- run: ls -R dist
ls -R dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip_existing: true
password: ${{ secrets.PYPI_PASSWORD }}

publish_docs:
name: Publish docs
Expand Down

0 comments on commit f7df40d

Please sign in to comment.