This is an automated email from the ASF dual-hosted git repository.
moonming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/master by this push:
new 08032360555 fix(ci): stop the docs overlay exiting 1 on a page with no
Markdown twin (#2083)
08032360555 is described below
commit 080323605551dbed4d03e14351506138f19b8706
Author: Ming Wen <[email protected]>
AuthorDate: Tue Jul 28 14:12:21 2026 +0800
fix(ci): stop the docs overlay exiting 1 on a page with no Markdown twin
(#2083)
---
.github/workflows/deploy.yml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 524e3d3e2a3..974852f5661 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -337,9 +337,14 @@ jobs:
dest="website/build/${locale_prefix}docs/$rel"
mkdir -p "$(dirname "$dest")"
cp "$src/$rel" "$dest"
- # Ship the Markdown twin next to the page it mirrors.
+ # Ship the Markdown twin next to the page it mirrors. Written as
+ # if/fi, not `[ -f … ] && cp …`: the latter is the loop body's
+ # last command, so a page without a twin makes the whole pipeline
+ # exit 1 under `set -e` — silently skipping every assertion
below.
twin="${rel%index.html}index.md"
- [ -f "$src/$twin" ] && cp "$src/$twin"
"website/build/${locale_prefix}docs/$twin"
+ if [ -f "$src/$twin" ]; then
+ cp "$src/$twin" "website/build/${locale_prefix}docs/$twin"
+ fi
done
done
# The version archives must survive untouched.