File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed
Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 11name : docs
22
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+
313on :
414 pull_request :
5- types :
6- - opened
7- - synchronize
8- - closed
9- paths :
15+ paths : &p
1016 # existing docs
1117 - ' docs/**'
1218 # changes to the cli reference generator
1521 - ' cli/**'
1622 # potential changes to gRPC documentation
1723 - ' rpc/**'
24+ push :
25+ branches :
26+ - master
27+ paths :
28+ << : *p
1829
1930jobs :
2031 build :
6778 run : task docs:build
6879
6980 - 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'
7283 uses : peaceiris/actions-gh-pages@v3
7384 with :
7485 github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments