forked from novasamatech/parity-signer
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.55 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Check links and Publish Docs
on:
pull_request:
push:
branches:
- master
paths:
- '.github/workflows/docs.yml'
- 'docs/**'
jobs:
deploy-docs:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
- name: Checkout repository
uses: actions/checkout@v2.4.0
- name: Use Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1.1.13
with:
mdbook-version: 'latest'
- name: Install mdbook-linkcheck
uses: baptiste0928/cargo-install@v1
with:
crate: mdbook-linkcheck
- name: Install mdbook-mermaid
uses: baptiste0928/cargo-install@v1
with:
crate: mdbook-mermaid
- name: Build docs
run: |
mdbook build docs
- name: Deploy documentation
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: docs/book/html/