Debian Codegraph @

.github/workflows/book.yml

raw
1 name: book
2
3 on:
4 pull_request:
5 push:
6 branches:
7 - "main"
8 workflow_dispatch:
9
10 jobs:
11 build-deploy:
12 runs-on: ubuntu-latest
13 name: build
14 steps:
15 - uses: actions/checkout@v6
16 - uses: actions-rs/toolchain@v1
17 with:
18 profile: minimal
19 toolchain: stable
20 override: true
21
22 - name: Setup mdBook
23 uses: peaceiris/actions-mdbook@v2
24
25 - run: mdbook build -d public
26 working-directory: book
27
28 - name: Deploy
29 uses: peaceiris/actions-gh-pages@v4
30 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
31 with:
32 github_token: ${{ secrets.GITHUB_TOKEN }}
33 publish_dir: ./book/public
34 keep_files: false
35 destination_dir: book
36
37 codespell:
38 runs-on: ubuntu-latest
39 steps:
40 - uses: actions/checkout@v6
41 - uses: codespell-project/actions-codespell@master
42 with:
43 check_filenames: true
44 path: book
45 ignore_words_list: "crate,gir"