Skip to content

Commit d686e5b

Browse files
committed
Build wheels and sdist on tags
This commit fixes f61f58b which triggered the jobs for building wheels and sdist only on 'develop' whereas they are also needed upon release.
1 parent f61f58b commit d686e5b

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/test_and_publish.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ jobs:
5858
needs: test-code
5959
if: |
6060
!failure() &&
61-
startsWith(github.ref, 'refs/heads/develop')
61+
(
62+
startsWith(github.ref, 'refs/heads/develop') ||
63+
(
64+
github.event_name == 'push' &&
65+
startsWith(github.ref, 'refs/tags/v')
66+
)
67+
)
6268
strategy:
6369
matrix:
6470
os: [ubuntu-latest, macos-latest, windows-latest]
@@ -84,7 +90,13 @@ jobs:
8490
needs: test-code
8591
if: |
8692
!failure() &&
87-
startsWith(github.ref, 'refs/heads/develop')
93+
(
94+
startsWith(github.ref, 'refs/heads/develop') ||
95+
(
96+
github.event_name == 'push' &&
97+
startsWith(github.ref, 'refs/tags/v')
98+
)
99+
)
88100
89101
steps:
90102
- name: Check out code

0 commit comments

Comments
 (0)