File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Book
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ tags :
7
+ - ' [0-9]+.[0-9]+.[0-9]+'
8
+
9
+ env :
10
+ RUST_BACKTRACE : full
11
+
12
+ jobs :
13
+ build :
14
+ name : Build and deploy book
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - run : cargo install mdbook
19
+ - name : Build examples
20
+ run : cd ${{ github.workspace }}/examples/basic_charts && cargo run
21
+ - run : mdbook build docs/book
22
+ - name : Checkout gh-pages branch
23
+ run : |
24
+ git fetch origin gh-pages:gh-pages
25
+ git checkout gh-pages
26
+ - name : Overwrite book content
27
+ run : |
28
+ rm -rf content
29
+ cp -r gh-pages/content .
30
+ - name : Deploy to GitHub Pages
31
+ run : |
32
+ git config --global user.name 'github-actions[bot]'
33
+ git config --global user.email 'github-actions[bot]@users.noreply.github.com'
34
+
35
+ git add content
36
+ git commit --allow-empty -m 'Deploy to GitHub Pages'
37
+ git push origin gh-pages
You can’t perform that action at this time.
0 commit comments