From b39ade516474a55e70c05acef5932881c8e822db Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Sun, 14 Jan 2024 23:44:03 +0100 Subject: [PATCH] github-actions: restrict build jobs to only run if a release is created --- .github/workflows/test-and-deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index bcce5587..2b4f0454 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -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']