Skip to content

Commit 1d6e912

Browse files
committed
only update doc on release
1 parent 2446770 commit 1d6e912

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/pytest-docs.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
name: Build Docs
22

33
on:
4-
[release, workflow_dispatch]
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- "v*"
9+
pull_request:
10+
branches:
11+
- main
512

613
jobs:
714
build:
@@ -34,6 +41,7 @@ jobs:
3441
cd docs_rst
3542
make html
3643
- name: Detect changes
44+
if: ${{ contains(github.ref, 'refs/heads/main') }}
3745
id: changes
3846
shell: bash
3947
run: |

0 commit comments

Comments
 (0)