-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (28 loc) · 762 Bytes
/
page.yaml
File metadata and controls
36 lines (28 loc) · 762 Bytes
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
name: pages
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup environment
uses: ./.github/actions/setup-rust
- name: Install mdbook
uses: ./.github/actions/setup-mdbook
- name: Run tests
run: cargo test --all-features --verbose
- name: Build book
run: head -n 9 README.md > docs/src/index.md && mdbook build docs
- name: Deploy to github pages
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: docs/book
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}