From 5ae153807958d7307f2ad504c9c4dafecf45f263 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Ruel Date: Tue, 28 May 2024 17:24:55 -0400 Subject: [PATCH] fix: ci activation rules --- .github/workflows/publish-to-test-pypi.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index e18c294..2f3d63f 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -2,6 +2,8 @@ name: Publish OpenSTL on: push: + branches: + - main tags: - 'v*' pull_request: @@ -61,7 +63,7 @@ jobs: git push build_wheels: - if: "startsWith(github.event.head_commit.message, 'bump:')" + if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && startsWith(github.event.head_commit.message, 'bump:')" name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: