File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ name: docs
22
33on :
44 pull_request :
5- types :
6- - opened
7- - synchronize
8- - closed
95 paths :
106 # existing docs
117 - ' docs/**'
1511 - ' cli/**'
1612 # potential changes to gRPC documentation
1713 - ' rpc/**'
14+ push :
15+ branches :
16+ - master
17+ # At this day, GitHub doesn't support YAML anchors, d'oh!
18+ paths :
19+ - ' docs/**'
20+ - ' docsgen/**'
21+ - ' cli/**'
22+ - ' rpc/**'
1823
1924jobs :
2025 build :
6772 run : task docs:build
6873
6974 - name : Deploy
70- # publish docs only when PR is merged
71- if : github.event.pull_request.merged == true
75+ # publish docs only when PR is merged on master
76+ if : github.event_name == 'push'
7277 uses : peaceiris/actions-gh-pages@v3
7378 with :
7479 github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -22,4 +22,4 @@ interface of the CLI. Available services and messages are detailed in the
2222[ installation ] : installation.md
2323[ Getting started guide ] : getting-started.md
2424[ client_example ] : https://github.com/arduino/arduino-cli/blob/master/client_example
25- [ gRPC reference ] : rpc/commands
25+ [ gRPC reference ] : rpc/commands
You can’t perform that action at this time.
0 commit comments