Skip to content

Commit eb80d2f

Browse files
Massimiliano Pippimasci
Massimiliano Pippi
authored andcommitted
deploy on push
1 parent f855fea commit eb80d2f

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

Diff for: .github/workflows/docs.yaml

+11-6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: docs
22

33
on:
44
pull_request:
5-
types:
6-
- opened
7-
- synchronize
8-
- closed
95
paths:
106
# existing docs
117
- 'docs/**'
@@ -15,6 +11,15 @@ on:
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

1924
jobs:
2025
build:
@@ -67,8 +72,8 @@ jobs:
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 }}

Diff for: docs/index.md

+1-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)