From 7f799a9b72b57108799c4fd2a39df42eef433fee Mon Sep 17 00:00:00 2001 From: lpossner Date: Tue, 23 Jul 2024 15:59:35 +0200 Subject: [PATCH] [MOD] - check in Actions pipeline if master branch for new version release --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee37d6b..4b8b13b 100755 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,7 +47,7 @@ jobs: CIBW_BUILD: ${{ matrix.cibw-string }} CIBW_SKIP: "*-musllinux_* *i686*" - name: Upload with twine - if: "contains(github.event.head_commit.message, 'PyPI')" + if: "github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, 'PyPI')" run: | python -m twine upload wheelhouse/*.whl env: @@ -92,7 +92,7 @@ jobs: CIBW_BEFORE_BUILD: "pip install numpy" CIBW_BUILD: ${{ matrix.cibw-string }} - name: Upload with twine - if: "contains(github.event.head_commit.message, 'PyPI')" + if: "github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, 'PyPI')" run: | python -m twine upload wheelhouse/*.whl env: @@ -142,7 +142,7 @@ jobs: CC: gcc-13 CXX: g++-13 - name: Upload with twine - if: "contains(github.event.head_commit.message, 'PyPI')" + if: "github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, 'PyPI')" run: | python -m twine upload wheelhouse/*.whl env: @@ -192,7 +192,7 @@ jobs: CC: gcc-13 CXX: g++-13 - name: Upload with twine - if: "contains(github.event.head_commit.message, 'PyPI')" + if: "github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, 'PyPI')" run: | python -m twine upload wheelhouse/*.whl env: