chore: avoid building wheels if a release is not made (#355)

This commit is contained in:
J. Nick Koston 2025-01-07 12:50:52 -10:00 committed by GitHub
parent 1164ca55dd
commit f9ec254150
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,6 +106,8 @@ jobs:
- test - test
- lint - lint
- commitlint - commitlint
outputs:
released: ${{ steps.release.outputs.released }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -126,7 +128,7 @@ jobs:
build_wheels: build_wheels:
needs: [release] needs: [release]
if: needs.release.outputs.released == 'true'
name: Build wheels on ${{ matrix.os }} with arch ${{ matrix.arch }} name: Build wheels on ${{ matrix.os }} with arch ${{ matrix.arch }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy: