File tree 2 files changed +26
-8
lines changed 2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ pull_request :
5
+ workflow_dispatch : ~
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ env :
11
+ MDBOOK_VERSION : 0.4.47
12
+
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+
16
+ - run : rustup update stable && rustup default stable
17
+
18
+ - run : cargo install --version ${MDBOOK_VERSION} mdbook
19
+
20
+ - run : mdbook build
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: deploy book
2
2
3
3
on :
4
4
push :
5
- branches : main
5
+ branches : [ main]
6
6
workflow_dispatch : ~
7
7
8
8
permissions :
@@ -21,18 +21,16 @@ jobs:
21
21
MDBOOK_VERSION : 0.4.47
22
22
steps :
23
23
- uses : actions/checkout@v4
24
- - name : Install mdBook
25
- run : |
26
- curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
27
- rustup update
28
- cargo install --version ${MDBOOK_VERSION} mdbook
24
+
25
+ - run : rustup update stable && rustup default stable
26
+
27
+ - run : cargo install --version ${MDBOOK_VERSION} mdbook
29
28
30
29
- name : Setup Pages
31
30
id : pages
32
31
uses : actions/configure-pages@v4
33
32
34
- - name : Build with mdBook
35
- run : mdbook build
33
+ - run : mdbook build
36
34
37
35
- name : Upload artifact
38
36
uses : actions/upload-pages-artifact@v3
You can’t perform that action at this time.
0 commit comments