From 832cc2ec446d0cfb5a67e9033d3d95d583bffe4b Mon Sep 17 00:00:00 2001 From: snowy Date: Mon, 19 Aug 2024 00:06:24 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BF=AE=E6=AD=A3=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pypi-publish.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 38c84e50..4ede3b5e 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -1,12 +1,8 @@ name: Publish on: - push: - branches: - - main - tags: - - '*' - workflow_dispatch: + release: + types: [published] jobs: pypi-publish: @@ -21,4 +17,4 @@ jobs: - uses: pdm-project/setup-pdm@v3 - name: Publish package distributions to PyPI - run: pdm publish \ No newline at end of file + run: pdm publish