Skip to content

Commit f6c6bfa

Browse files
committed
ci: add GitHub Actions workflow to build and deploy mdBook docs
1 parent 9cd9325 commit f6c6bfa

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy mdBook to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Install mdBook
16+
run: cargo install mdbook
17+
18+
- name: Build the book
19+
run: mdbook build docs
20+
21+
- name: Deploy to GitHub Pages
22+
uses: peaceiris/actions-gh-pages@v3
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: ./docs/book

0 commit comments

Comments
 (0)