Skip to content

Commit 596c7f3

Browse files
committed
add GitHub Actions workflow to deploy mdBook
1 parent bfdb2c0 commit 596c7f3

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Install mdBook
17+
uses: peaceiris/actions-mdbook@v1
18+
with:
19+
mdbook-version: 'latest'
20+
21+
- name: Build the book
22+
run: mdbook build docs
23+
24+
- name: Deploy to GitHub Pages
25+
uses: peaceiris/actions-gh-pages@v3
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: ./docs/book

0 commit comments

Comments
 (0)