From 6c9e349970c1feb10a8c5abf295780eba29cb946 Mon Sep 17 00:00:00 2001 From: JP-Ellis Date: Thu, 10 Oct 2024 12:11:10 +1100 Subject: [PATCH] chore(ci): tweak build conditions Signed-off-by: JP-Ellis --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e6e909fca..742a68144 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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 @@ -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 @@ -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