Skip to content

Commit

Permalink
[MOD] - check in Actions pipeline if master branch for new version re…
Browse files Browse the repository at this point in the history
…lease
  • Loading branch information
lpossner committed Jul 23, 2024
1 parent 4dfde21 commit 7f799a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7f799a9

Please sign in to comment.