From 626bcf004880c1bad850e9329b8e2e36dc1fc423 Mon Sep 17 00:00:00 2001 From: Antonio Vivace Date: Fri, 3 Mar 2023 23:55:42 +0100 Subject: [PATCH] ci: install i18n-helpers and build IT translation --- .github/workflows/build-and-deploy.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 2d7d6cad..f1fc9b7f 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -20,6 +20,11 @@ jobs: with: mdbook-version: latest + - name: Install i18n-helpers + working-directory: gb-asm-tutorial/ + run: cargo install --path i18n-helpers --locked + shell: bash + # FIXME: Keep this up to date - name: Install mdbook-linkcheck run: | # `-L` because GitHub performs a redirection @@ -44,6 +49,17 @@ jobs: run: | mdbook build + - name: Build IT translation + working-directory: gb-asm-tutorial/ + env: + MDBOOK_BUILD__CREATE_MISSING: "false" # Prevent creating missing files in SUMMARY.md + MDBOOK_OUTPUT__LINKCHECK__COMMAND: "../mdbook-linkcheck" + MDBOOK_OUTPUT__LINKCHECK__OPTIONAL: "false" + MDBOOK_BOOK__LANGUAGE: "it" + run: | + mdbook build -d book/it + mv book/it/custom book/custom/it + - name: Store final build uses: actions/upload-artifact@v2 with: