-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 886 Bytes
/
docs.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
34
35
36
37
38
39
40
41
name: docs
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
persist-credentials: false
- name: Install "cargo-binstall"
uses: cargo-bins/[email protected]
- name: Install "broken-md-links"
run: cargo binstall "broken-md-links" -y
- name: Check docs
run: broken-md-links ${GITHUB_WORKSPACE}/docs
- name: Setup mdBook
uses: peaceiris/[email protected]
with:
mdbook-version: latest
- name: Build the docs
run: mdbook build
- name: Deploy the docs
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: book