File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,14 +24,31 @@ jobs:
2424 - name : Checkout
2525 uses : actions/checkout@v4
2626
27+ - name : Stage static demos
28+ run : |
29+ mkdir -p site
30+ # Core demos (self-contained HTML)
31+ cp index.html site/
32+ cp ForensicTelemetry_Standalone.html site/
33+ cp UnityProtocol_Visualizer.html site/
34+ # Required so GitHub Pages does not run Jekyll
35+ touch site/.nojekyll
36+ # Optional: small docs assets referenced by demos if present
37+ if [ -d docs ]; then
38+ mkdir -p site/docs
39+ # copy only image-like assets used by the public surface
40+ find docs -maxdepth 2 \( -name '*.webp' -o -name '*.png' -o -name '*.jpg' -o -name '*.svg' \) -exec cp {} site/docs/ \; 2>/dev/null || true
41+ fi
42+ echo "Staged files:"
43+ find site -type f | sort
44+
2745 - name : Setup Pages
2846 uses : actions/configure-pages@v5
2947
3048 - name : Upload artifact
3149 uses : actions/upload-pages-artifact@v3
3250 with :
33- # Publish repo root static HTML demos as-is
34- path : .
51+ path : site
3552
3653 - name : Deploy to GitHub Pages
3754 id : deployment
You can’t perform that action at this time.
0 commit comments