github-actions: restrict build jobs to only run if a release is created

This commit is contained in:
Martin Bubel 2024-01-14 23:44:03 +01:00
parent 15382a4446
commit b39ade5164

View file

@ -99,6 +99,7 @@ jobs:
pytest GPy/testing
build-windows:
if: github.event_name == 'release'
strategy:
matrix:
os: [windows-latest]
@ -131,6 +132,7 @@ jobs:
path: dist
build-macos:
if: github.event_name == 'release'
strategy:
matrix:
os: [macos-latest]
@ -162,6 +164,7 @@ jobs:
path: dist/*
build-linux:
if: github.event_name == 'release'
strategy:
matrix:
python: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312']