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