Skip to content

Commit

Permalink
chore(ci): tweak build conditions
Browse files Browse the repository at this point in the history
Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Oct 10, 2024
1 parent 393190b commit 6c9e349
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
build-sdist:
name: Build source distribution

if: github.event_name == 'push' || ! github.event.pull_request.draft
runs-on: ubuntu-20.04

steps:
Expand Down Expand Up @@ -80,7 +79,6 @@ jobs:
build-x86_64:
name: Build wheels on ${{ matrix.os }} (x86, 64-bit)

if: github.event_name == 'push' || ! github.event.pull_request.draft
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -146,7 +144,7 @@ jobs:
# As this requires emulation, it's not worth running on PRs or master
if: >-
github.event_name == 'push' &&
startsWith(github.event.ref, 'refs/tags/v*')
startsWith(github.event.ref, 'refs/tags/v')
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -206,7 +204,9 @@ jobs:
publish:
name: Publish wheels and sdist

if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
if: >-
github.event_name == 'push' &&
startsWith(github.event.ref, 'refs/tags/v')
runs-on: ubuntu-20.04
environment:
name: pypi
Expand Down

0 comments on commit 6c9e349

Please sign in to comment.