forked from 0xFacet/facet-kona
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 814 Bytes
/
Copy pathbook.yaml
File metadata and controls
31 lines (31 loc) · 814 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
name: Book Deployment
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
deployments: write
name: Publish to GitHub Pages
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.85
- name: Setup mdbook
run: |
cargo install --version 0.4.40 mdbook
cargo install mdbook-mermaid mdbook-template mdbook-alerts
- name: Build book
working-directory: ./book
run: mdbook build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/book