mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-21 23:45:42 +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
|
- name: Build course in English
|
||||||
run: mdbook build -d book
|
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
|
- name: Build all translations
|
||||||
run: |
|
run: |
|
||||||
for po_lang in ${{ env.LANGUAGES }}; do
|
for po_lang in ${{ env.LANGUAGES }}; do
|
||||||
@ -47,12 +50,11 @@ jobs:
|
|||||||
MDBOOK_BOOK__LANGUAGE=$po_lang \
|
MDBOOK_BOOK__LANGUAGE=$po_lang \
|
||||||
MDBOOK_OUTPUT__HTML__SITE_URL=/comprehensive-rust/$po_lang/ \
|
MDBOOK_OUTPUT__HTML__SITE_URL=/comprehensive-rust/$po_lang/ \
|
||||||
mdbook build -d book/$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::"
|
echo "::endgroup::"
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Zip exercise templates
|
|
||||||
run: cd book/exerciser && zip --recurse-paths ../html/exercises.zip exercise-templates/
|
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v2
|
uses: actions/configure-pages@v2
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user