Skip to content

Commit 5bc3c9a

Browse files
authored
[fix] fix cron build (#3614)
1 parent 5470b5a commit 5bc3c9a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/cron-deploy-website.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ jobs:
4444
PWA_SERVICE_WORKER_URL=https://doris.apache.org/sw.js yarn docusaurus build --locale zh-CN --out-dir build-zh
4545
rm -rf ./build && mkdir ./build
4646
cp -a ./build-en/. ./build/
47-
cp -a ./build-zh/zh-CN/. ./build/zh-CN/
47+
# docusaurus build --locale zh-CN --out-dir build-zh writes the locale's full output directly under build-zh/ (no zh-CN subdir); the emitted HTML already contains /zh-CN/ URL prefixes, so we publish build-zh/ verbatim under build/zh-CN/.
48+
mkdir -p ./build/zh-CN
49+
cp -a ./build-zh/. ./build/zh-CN/
4850
if [ ! -d "./ja-build" ]; then
4951
echo "ja-build directory not found, aborting to avoid publishing incorrect ja content."
5052
exit 1

.github/workflows/manual-deploy-website.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ jobs:
4747
PWA_SERVICE_WORKER_URL=https://doris.apache.org/sw.js yarn docusaurus build --locale zh-CN --out-dir build-zh
4848
rm -rf ./build && mkdir ./build
4949
cp -a ./build-en/. ./build/
50-
cp -a ./build-zh/zh-CN/. ./build/zh-CN/
50+
# docusaurus build --locale zh-CN --out-dir build-zh writes the locale's full output directly under build-zh/ (no zh-CN subdir); the emitted HTML already contains /zh-CN/ URL prefixes, so we publish build-zh/ verbatim under build/zh-CN/.
51+
mkdir -p ./build/zh-CN
52+
cp -a ./build-zh/. ./build/zh-CN/
5153
if [ ! -d "./ja-build" ]; then
5254
echo "ja-build directory not found, aborting to avoid publishing incorrect ja content."
5355
exit 1

0 commit comments

Comments
 (0)