Skip to content

Commit eda8287

Browse files
committed
chore(ci): tweak build conditions
Signed-off-by: JP-Ellis <[email protected]>
1 parent 07a0758 commit eda8287

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242
build-sdist:
4343
name: Build source distribution
4444

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

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

83-
if: github.event_name == 'push' || ! github.event.pull_request.draft
8482
runs-on: ${{ matrix.os }}
8583
strategy:
8684
fail-fast: false
@@ -146,7 +144,7 @@ jobs:
146144
# As this requires emulation, it's not worth running on PRs or master
147145
if: >-
148146
github.event_name == 'push' &&
149-
startsWith(github.event.ref, 'refs/tags/v*')
147+
startsWith(github.event.ref, 'refs/tags/v')
150148
runs-on: ${{ matrix.os }}
151149
strategy:
152150
fail-fast: false
@@ -206,7 +204,9 @@ jobs:
206204
publish:
207205
name: Publish wheels and sdist
208206

209-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
207+
if: >-
208+
github.event_name == 'push' &&
209+
startsWith(github.event.ref, 'refs/tags/v')
210210
runs-on: ubuntu-20.04
211211
environment:
212212
name: pypi

0 commit comments

Comments
 (0)