Skip to content

Commit

Permalink
ci: install i18n-helpers and build IT translation
Browse files Browse the repository at this point in the history
  • Loading branch information
avivace committed Mar 3, 2023
1 parent 336653b commit 626bcf0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 626bcf0

Please sign in to comment.