Update build.yml - enable builds on main branch

pull requests should be able to access cache from main branch (caching is useless otherwise).
This commit is contained in:
Thomas Ferreira de Lima 2023-05-29 17:17:22 -04:00 committed by GitHub
parent 21a263439f
commit a32a6eef8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -4,8 +4,11 @@ name: Build Python Wheels
on:
pull_request:
# Running on PRs is enough
# push:
# Running on PRs and main branch only
# pull requests should be able to access cache from main branch
push:
branches:
- master
release:
types: [published]