Skip to content

Commit 1810688

Browse files
committed
fix CI for build condition
1 parent 4a01946 commit 1810688

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ jobs:
5757

5858
build:
5959
name: build distribution
60-
if: ${{ github.repository_owner == 'sphinx-doc' && github.ref == 'refs/heads/master' }}
60+
if: |
61+
${{ github.repository_owner == 'sphinx-doc' &&
62+
(
63+
( github.event_name == 'push' && github.ref == 'refs/heads/master' )
64+
|| ( github.event_name == 'release' )
65+
)
66+
}}
6167
needs:
6268
- tests
6369
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)