forked from lalrpop/lalrpop
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 795 Bytes
/
book.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Test book
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
lint-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- name: Install mdbook-linkcheck
run: |
curl -Ls https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/latest/download/mdbook-linkcheck.x86_64-unknown-linux-gnu.zip -o mdbook-linkcheck.zip &&
unzip -n "$_" mdbook-linkcheck &&
chmod +x "$_"
working-directory: ./doc
- name: Lint book
run: |
gem install mdl
mdl doc
- run: env PATH=$PWD:$PATH mdbook build
working-directory: ./doc