From 8ce94241a4ba33c440ce6eef43a1f23d3f6a4cb5 Mon Sep 17 00:00:00 2001 From: awwaawwa <8493196+awwaawwa@users.noreply.github.com> Date: Fri, 24 Jan 2025 19:36:40 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci(workflows):=20update=20releas?= =?UTF-8?q?e=20drafter=20to=20conditionally=20publish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add dynamic publish flag based on build output - use `needs.build.outputs.is_release` to control release publication - ensure release is only published when release conditions are met --- .github/workflows/publish-to-pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 63109ed9..d334e644 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -124,7 +124,7 @@ jobs: - name: Publish the release notes uses: release-drafter/release-drafter@v5.23.0 with: - publish: true + publish: ${{ needs.build.outputs.is_release != '' }} tag: ${{ needs.build.outputs.is_release }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file