From dfce8a08d0eceb7dbf05ee27092ed5c8e9b0c085 Mon Sep 17 00:00:00 2001 From: Adrien Perrin Date: Tue, 12 Dec 2023 09:27:08 +0100 Subject: [PATCH] ajsut build package condition --- .github/workflows/tests_build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/tests_build.yml b/.github/workflows/tests_build.yml index bd9a40b..bb3582a 100644 --- a/.github/workflows/tests_build.yml +++ b/.github/workflows/tests_build.yml @@ -43,6 +43,7 @@ jobs: build_publish_package: runs-on: 'ubuntu-latest' needs: tests + if: github.event_name == 'release' steps: - uses: actions/checkout@v4 @@ -52,13 +53,11 @@ jobs: python-version: '3' - name: Build Python package - if: github.event_name == 'release' run: > PYTHESINT_RELEASE="${{ github.ref_name }}" python setup.py sdist bdist_wheel - name: Publish Python package - if: github.event_name == 'release' uses: pypa/gh-action-pypi-publish@release/v1 with: # Storing the PyPI URL in the repositories' secrets makes