From 265c174f858e74a0f4febc151a04a24db97a1810 Mon Sep 17 00:00:00 2001 From: "zhuguoxuan.zgx" Date: Thu, 3 Jul 2025 17:17:46 +0800 Subject: [PATCH] publish on new PR merged --- .github/workflows/python-publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a980a00f..b7efc3ac 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -1,6 +1,11 @@ name: release on: + pull_request: + types: [closed] + branches: + - main + push: tags: - 'v**' @@ -20,6 +25,7 @@ concurrency: jobs: build-and-publish: + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) runs-on: ubuntu-latest steps: