Skip to content

Commit 9463060

Browse files
committed
ci: added .github
1 parent 1fbc040 commit 9463060

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

‎.github/workflows/book.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: book
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
concurrency:
13+
group: book-pages
14+
cancel-in-progress: true
15+
16+
jobs:
17+
deploy_site:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Setup mdBook
23+
uses: peaceiris/actions-mdbook@v1
24+
with:
25+
mdbook-version: 'latest'
26+
27+
- name: Build book
28+
run: mdbook build book --dest-dir docs
29+
30+
- name: Deploy
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: ./docs

0 commit comments

Comments
 (0)