This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 26ae066fe9a [ci] split bilingual build per locale and enable docs-next 
in cron deploy (#3612)
26ae066fe9a is described below

commit 26ae066fe9abf7db3e2e37b4581a7ce6ed5f4f47
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Tue May 5 17:01:16 2026 -0700

    [ci] split bilingual build per locale and enable docs-next in cron deploy 
(#3612)
    
    Split docusaurus build into separate `--locale en` and `--locale zh-CN`
    runs (each with its own `--out-dir`), then merge into `build/`, to halve
    per-process peak memory and avoid the runner-OOM that took down the
    2-hour cron deploy. Also drop `SKIP_DOCS_NEXT=1` from the cron deploy so
    docs-next ships with the rest of the site.
    
    Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
---
 .github/workflows/cron-deploy-website.yml   | 8 ++++++--
 .github/workflows/manual-deploy-website.yml | 7 ++++++-
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/cron-deploy-website.yml 
b/.github/workflows/cron-deploy-website.yml
index f3695d782d3..c7a8ade5f4e 100644
--- a/.github/workflows/cron-deploy-website.yml
+++ b/.github/workflows/cron-deploy-website.yml
@@ -37,10 +37,14 @@ jobs:
                   npm install -g yarn
                   yarn cache clean
                   export NODE_OPTIONS=--max-old-space-size=8192
-                  export SKIP_DOCS_NEXT=1
                   yarn
                   node ./scripts/update_github_info.js
-                  PWA_SERVICE_WORKER_URL=https://doris.apache.org/sw.js yarn 
docusaurus build --locale en --locale zh-CN
+                  # Build each locale separately into its own out-dir to halve 
per-process peak memory and avoid OOM on the GitHub-hosted runner.
+                  PWA_SERVICE_WORKER_URL=https://doris.apache.org/sw.js yarn 
docusaurus build --locale en --out-dir build-en
+                  PWA_SERVICE_WORKER_URL=https://doris.apache.org/sw.js yarn 
docusaurus build --locale zh-CN --out-dir build-zh
+                  rm -rf ./build && mkdir ./build
+                  cp -a ./build-en/. ./build/
+                  cp -a ./build-zh/zh-CN/. ./build/zh-CN/
                   if [ ! -d "./ja-build" ]; then
                       echo "ja-build directory not found, aborting to avoid 
publishing incorrect ja content."
                       exit 1
diff --git a/.github/workflows/manual-deploy-website.yml 
b/.github/workflows/manual-deploy-website.yml
index 7d791155963..92d2e1a9cdb 100644
--- a/.github/workflows/manual-deploy-website.yml
+++ b/.github/workflows/manual-deploy-website.yml
@@ -42,7 +42,12 @@ jobs:
                   yarn cache clean
                   export NODE_OPTIONS=--max-old-space-size=8192
                   yarn
-                  PWA_SERVICE_WORKER_URL=https://doris.apache.org/sw.js yarn 
docusaurus build --locale en --locale zh-CN
+                  # Build each locale separately into its own out-dir to halve 
per-process peak memory and avoid OOM on the GitHub-hosted runner.
+                  PWA_SERVICE_WORKER_URL=https://doris.apache.org/sw.js yarn 
docusaurus build --locale en --out-dir build-en
+                  PWA_SERVICE_WORKER_URL=https://doris.apache.org/sw.js yarn 
docusaurus build --locale zh-CN --out-dir build-zh
+                  rm -rf ./build && mkdir ./build
+                  cp -a ./build-en/. ./build/
+                  cp -a ./build-zh/zh-CN/. ./build/zh-CN/
                   if [ ! -d "./ja-build" ]; then
                       echo "ja-build directory not found, aborting to avoid 
publishing incorrect ja content."
                       exit 1


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to