Skip to content

Commit 5f04f6d

Browse files
committed
workflows docs: check docs is building on push to master
1 parent bfbde3b commit 5f04f6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: docs
22

33
on:
44
push:
5+
branches:
6+
- master
57
tags:
68
- 'v[0-9]+.[0-9]+.[0-9]+'
79
pull_request:
@@ -31,7 +33,7 @@ jobs:
3133

3234
deploy:
3335
needs: build
34-
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
36+
if: ${{ github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/v') }}
3537
permissions:
3638
pages: write
3739
id-token: write

0 commit comments

Comments
 (0)