File tree 1 file changed +18
-7
lines changed 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : docs
2
2
3
+ paths :
4
+ # existing docs
5
+ - ' docs/**'
6
+ # changes to the cli reference generator
7
+ - ' docsgen/**'
8
+ # potential changes to commands documentation
9
+ - ' cli/**'
10
+ # potential changes to gRPC documentation
11
+ - ' rpc/**'
12
+
3
13
on :
4
14
pull_request :
5
- types :
6
- - opened
7
- - synchronize
8
- - closed
9
- paths :
15
+ paths : &p
10
16
# existing docs
11
17
- ' docs/**'
12
18
# changes to the cli reference generator
15
21
- ' cli/**'
16
22
# potential changes to gRPC documentation
17
23
- ' rpc/**'
24
+ push :
25
+ branches :
26
+ - master
27
+ paths :
28
+ << : *p
18
29
19
30
jobs :
20
31
build :
67
78
run : task docs:build
68
79
69
80
- name : Deploy
70
- # publish docs only when PR is merged
71
- if : github.event.pull_request.merged == true
81
+ # publish docs only when PR is merged on master
82
+ if : github.event_name == 'push'
72
83
uses : peaceiris/actions-gh-pages@v3
73
84
with :
74
85
github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments