Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): tweak build conditions #824

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading