fix(ci): run public pages via bash script with per-file logging
Move the Build & export loop into scripts/run-public-pages.sh (explicit bash, skip files without # main) so CI failures show which demo broke. Also quote remaining time/json italic string args. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
0fddc3bf05
commit
7317a653c7
5 files changed
+24
-14
No files matched your search
@@ -11,6 +11,7 @@ on:
|
||||
- "Cargo.lock"
|
||||
- ".github/workflows/pages.yml"
|
||||
- "scripts/build-public.*"
|
||||
- "scripts/run-public-pages.sh"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
@@ -26,15 +27,8 @@ jobs:
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Build & export site
|
||||
run: |
|
||||
cargo build --release
|
||||
# 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
|
||||
shell: bash
|
||||
run: bash scripts/run-public-pages.sh
|
||||
|
||||
- name: Verify site shape
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user