Skip to content

Commit 3cbddcc

Browse files
committed
feat: book action
1 parent e5da82b commit 3cbddcc

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/book.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy mdBook
2+
on:
3+
# REMOVE
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: peaceiris/actions-mdbook@v2
16+
with:
17+
mdbook-version: 'latest'
18+
- run: mdbook build
19+
- uses: peaceiris/actions-gh-pages@v4
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
publish_dir: ./book

0 commit comments

Comments
 (0)