Skip to content

Commit 626bcf0

Browse files
committed
ci: install i18n-helpers and build IT translation
1 parent 336653b commit 626bcf0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

+16
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
with:
2121
mdbook-version: latest
2222

23+
- name: Install i18n-helpers
24+
working-directory: gb-asm-tutorial/
25+
run: cargo install --path i18n-helpers --locked
26+
shell: bash
27+
2328
# FIXME: Keep this up to date
2429
- name: Install mdbook-linkcheck
2530
run: | # `-L` because GitHub performs a redirection
@@ -44,6 +49,17 @@ jobs:
4449
run: |
4550
mdbook build
4651
52+
- name: Build IT translation
53+
working-directory: gb-asm-tutorial/
54+
env:
55+
MDBOOK_BUILD__CREATE_MISSING: "false" # Prevent creating missing files in SUMMARY.md
56+
MDBOOK_OUTPUT__LINKCHECK__COMMAND: "../mdbook-linkcheck"
57+
MDBOOK_OUTPUT__LINKCHECK__OPTIONAL: "false"
58+
MDBOOK_BOOK__LANGUAGE: "it"
59+
run: |
60+
mdbook build -d book/it
61+
mv book/it/custom book/custom/it
62+
4763
- name: Store final build
4864
uses: actions/upload-artifact@v2
4965
with:

0 commit comments

Comments
 (0)