1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-01-20 21:18:26 +02:00

Fix publishing translations.

This commit is contained in:
Andrew Walbran 2023-04-05 12:02:52 +01:00
parent 6cba1ef2bb
commit 6b7c7cbc73

View File

@ -40,6 +40,9 @@ jobs:
- name: Build course in English
run: mdbook build -d book
- name: Zip exercise templates
run: cd book/exerciser && zip --recurse-paths ../html/exercises.zip exercise-templates/
- name: Build all translations
run: |
for po_lang in ${{ env.LANGUAGES }}; do
@ -47,12 +50,11 @@ jobs:
MDBOOK_BOOK__LANGUAGE=$po_lang \
MDBOOK_OUTPUT__HTML__SITE_URL=/comprehensive-rust/$po_lang/ \
mdbook build -d book/$po_lang
(cd book/$po_lang/exerciser && zip --recurse-paths ../html/exercises.zip exercise-templates/)
mv book/$po_lang/html book/html/$po_lang
echo "::endgroup::"
done
- name: Zip exercise templates
run: cd book/exerciser && zip --recurse-paths ../html/exercises.zip exercise-templates/
- name: Setup Pages
uses: actions/configure-pages@v2