Skip to content

Commit 0edc960

Browse files
authored
Avoid compiling mdBook from source in every CI invocation (#677)
Use taiki-e/install-action github action
1 parent 8dc19b1 commit 0edc960

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎.github/workflows/build-and-deploy.yml‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ jobs:
4646
with:
4747
workspaces: pandocs/
4848

49-
- name: Install mdbook
50-
run: cargo install mdbook@${MDBOOK_VERSION}
49+
- name: Install mdbook dependencies
50+
uses: taiki-e/install-action@v2
51+
with:
52+
tool: mdbook@${{ env.MDBOOK_VERSION }}
5153

5254
- name: Install static-sitemap-cli
5355
run: npm install static-sitemap-cli
@@ -90,9 +92,9 @@ jobs:
9092
workspaces: pandocs/
9193

9294
- name: Install mdbook dependencies
93-
run: |
94-
cargo install mdbook@${MDBOOK_VERSION}
95-
cargo install mdbook-linkcheck2@${MDBOOK_LINKCHECK2_VERSION}
95+
uses: taiki-e/install-action@v2
96+
with:
97+
tool: mdbook@${{ env.MDBOOK_VERSION }} mdbook-linkcheck2@${{ env.MDBOOK_LINKCHECK2_VERSION }}
9698

9799
- name: Install Python dependencies
98100
run: |

0 commit comments

Comments
 (0)