From 8292d11cb1b4394ef0f45fe33f1725f35d49fb92 Mon Sep 17 00:00:00 2001 From: Lukas Magel Date: Sat, 18 Jan 2025 16:02:53 +0100 Subject: [PATCH] Add publish guard to only deploy when a release event occurs --- .github/workflows/build.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4b8da44..bab1a7b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: permissions: id-token: write -# if: github.event.release && github.event.action == 'published' + if: github.event.release && github.event.action == 'published' steps: - name: Dowload Artifacts uses: actions/download-artifact@v4 @@ -77,6 +77,4 @@ jobs: merge-multiple: true - name: Publish to PyPi uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/