Skip to content

Commit 2cc6f07

Browse files
committed
CI: build & deploy Quarto (multi-profile, US last)
1 parent 6bbd744 commit 2cc6f07

1 file changed

Lines changed: 29 additions & 34 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ on:
44
push:
55
branches: [ main ]
66

7-
# 27 профилей из твоего локального списка (порядок сохранён)
8-
env:
9-
PROFILES: >
10-
es ru gb sa in fr br de cn bd la mx ir id it jp kr pl pt ke th tr ua vn hk tw us
11-
127
jobs:
138
build:
149
runs-on: ubuntu-latest
@@ -17,41 +12,41 @@ jobs:
1712
- name: Checkout
1813
uses: actions/checkout@v4
1914

20-
- name: Setup Python
21-
uses: actions/setup-python@v5
22-
with:
23-
python-version: '3.x'
24-
25-
- name: Install Python deps
26-
run: pip install -U pyyaml
27-
2815
- name: Setup Quarto
2916
uses: quarto-dev/quarto-actions/setup@v2
3017

31-
# Проверка локализаций для каждого профиля
32-
- name: L10N check (all profiles)
33-
shell: bash
34-
run: |
35-
set -euo pipefail
36-
for p in $PROFILES; do
37-
echo ">>> L10N check: $p"
38-
python scripts/l10n_check.py "$p"
39-
done
40-
41-
# Рендерим root-версию в корень _site/
42-
- name: Render HOME (root)
43-
run: |
44-
quarto render --output-dir _site
45-
46-
# Рендерим все профили в _site/<profile>/
47-
- name: Render all profiles into _site/<profile>
18+
# Рендерим профили в точном порядке: первым es (чисто), последним us (--no-clean)
19+
- name: Render profiles (last = US)
4820
shell: bash
4921
run: |
5022
set -euo pipefail
51-
for p in $PROFILES; do
52-
echo ">>> Rendering profile: $p"
53-
quarto render --profile "$p" --output-dir "_site/${p}"
54-
done
23+
quarto render --profile es
24+
quarto render --profile ru --no-clean
25+
quarto render --profile gb --no-clean
26+
quarto render --profile sa --no-clean
27+
quarto render --profile in --no-clean
28+
quarto render --profile fr --no-clean
29+
quarto render --profile br --no-clean
30+
quarto render --profile de --no-clean
31+
quarto render --profile cn --no-clean
32+
quarto render --profile bd --no-clean
33+
quarto render --profile la --no-clean
34+
quarto render --profile mx --no-clean
35+
quarto render --profile ir --no-clean
36+
quarto render --profile id --no-clean
37+
quarto render --profile it --no-clean
38+
quarto render --profile jp --no-clean
39+
quarto render --profile kr --no-clean
40+
quarto render --profile pl --no-clean
41+
quarto render --profile pt --no-clean
42+
quarto render --profile ke --no-clean
43+
quarto render --profile th --no-clean
44+
quarto render --profile tr --no-clean
45+
quarto render --profile ua --no-clean
46+
quarto render --profile vn --no-clean
47+
quarto render --profile hk --no-clean
48+
quarto render --profile tw --no-clean
49+
quarto render --profile us --no-clean
5550
5651
- name: Upload artifact
5752
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)