Skip to content

Commit 8831290

Browse files
committed
ci: build and commit
1 parent 3a10253 commit 8831290

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/gitbook-action.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy DCM User Guide
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout gh-pages
14+
- uses: actions/checkout@v2
15+
with:
16+
repository: Dronecode/camera-manager.dronecode.org
17+
path: gh-pages
18+
- name: Checkout Book
19+
- uses: actions/checkout@v2
20+
with:
21+
path: main
22+
- name: Setting-up Book
23+
uses: actions/setup-node@v1
24+
- run: cd main
25+
- run: npm install gitbook-cli
26+
- run: gitbook install
27+
- run: gitbook build . ../gh-pages
28+
- name: Deploying book
29+
- uses: EndBug/add-and-commit@v4
30+
with:
31+
author_name: PX4BuildBot
32+
author_email: px4buildbot@px4.io
33+
message: "gitbook build update ${{date}}"
34+
cwd: "gh-pages"
35+
add: "*"
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.PX4BOT_TOKEN }}

0 commit comments

Comments
 (0)