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:
parent
6cba1ef2bb
commit
6b7c7cbc73
8
.github/workflows/publish.yml
vendored
8
.github/workflows/publish.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user