fix(ci): skip public mq.md files without # main
Avoid locale-sensitive find -name/?? matching for 工具.mq.md; only run demos that define # main so import helpers are skipped on all runners. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
724a22e48d
commit
0fddc3bf05
1 file changed
+6
-3
@@ -28,9 +28,12 @@ jobs:
|
||||
- name: Build & export site
|
||||
run: |
|
||||
cargo build --release
|
||||
# Skip import helpers (no `# main`); exclude both EN/ZH names.
|
||||
find public -name '*.mq.md' ! -path '*/structure/import/utils.mq.md' ! -path '*/structure/import/??.mq.md' -print0 \
|
||||
| xargs -0 -n1 ./target/release/marqdo run
|
||||
# Skip import helpers and any demo without `# main` (locale-safe; no UTF-8 names in find).
|
||||
set -e
|
||||
while IFS= read -r -d '' f; do
|
||||
grep -q '^# main' "$f" || continue
|
||||
./target/release/marqdo run "$f"
|
||||
done < <(find public -name '*.mq.md' -print0)
|
||||
./target/release/marqdo view output public -o public
|
||||
|
||||
- name: Verify site shape
|
||||
|
||||
Reference in new issue
Block a user