From d65373cfabf901ec8203d5012c0eb4183eed3c91 Mon Sep 17 00:00:00 2001 From: Tsuyoshi Hombashi Date: Sun, 19 May 2024 01:12:23 +0900 Subject: [PATCH] Add conditional check for publishing package to TestPyPI Signed-off-by: Tsuyoshi Hombashi --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a06c3ad..e75ff70 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,6 +68,7 @@ jobs: - name: Publish package to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 + if: github.event_name == 'push' && github.ref == 'refs/heads/master' with: repository-url: https://test.pypi.org/legacy/ skip-existing: true