File tree 3 files changed +42
-1121
lines changed
3 files changed +42
-1121
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- src
6
+ schedule :
7
+ # Every day, to pick up the latest rust-analyzer repo changes.
8
+ - cron : ' 0 0 * * *'
9
+ workflow_dispatch :
6
10
7
11
jobs :
8
12
CI :
16
20
17
21
- run : bundle install && bundle exec jekyll build
18
22
23
+ - uses : taiki-e/install-action@v2
24
+ with :
25
+ tool : mdbook@0.4.40
26
+
27
+ - uses : taiki-e/install-action@v2
28
+ with :
29
+ tool : mdbook-toc@0.14.2
30
+
31
+ - name : Clone the rust-analyzer repository
32
+ uses : GuillaumeFalourd/clone-github-repo-action@v2.3
33
+ with :
34
+ depth : 1
35
+ branch : ' master'
36
+ owner : ' rust-lang'
37
+ repository : ' rust-analyzer'
38
+
39
+ - name : Build generated.md files
40
+ run : cd rust-analyzer && cargo xtask codegen
41
+
42
+ - name : Run mdbook
43
+ run : cd rust-analyzer/docs/book && mdbook build
44
+
45
+ - name : Include mdbook output
46
+ run : mv rust-analyzer/docs/book/book _site
47
+
19
48
- name : Deploy
20
49
uses : peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
21
50
with :
You can’t perform that action at this time.
0 commit comments