Skip to content

refactor: layout masonry greedy pour le panneau de configuration #28

refactor: layout masonry greedy pour le panneau de configuration

refactor: layout masonry greedy pour le panneau de configuration #28

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Assemble site
run: |
mkdir -p dist
# Contenu client
cp -r public/. dist/
# Three.js
mkdir -p dist/three/build dist/three/examples/jsm
cp node_modules/three/build/three.module.js dist/three/build/
cp -r node_modules/three/examples/jsm/. dist/three/examples/jsm/
# Rapier
mkdir -p dist/rapier
cp node_modules/@dimforge/rapier3d-compat/rapier.es.js dist/rapier/
cp node_modules/@dimforge/rapier3d-compat/rapier_wasm3d.js dist/rapier/
cp node_modules/@dimforge/rapier3d-compat/*.wasm dist/rapier/ 2>/dev/null || true
# Manifold
mkdir -p dist/manifold
cp node_modules/manifold-3d/manifold.js dist/manifold/
cp node_modules/manifold-3d/manifold.wasm dist/manifold/
# three-gpu-pathtracer
mkdir -p dist/pathtracer
cp node_modules/three-gpu-pathtracer/build/index.module.js dist/pathtracer/
# three-mesh-bvh
mkdir -p dist/mesh-bvh
cp node_modules/three-mesh-bvh/build/index.module.js dist/mesh-bvh/
# Eruda (debug console mobile — facultatif en prod)
mkdir -p dist/eruda
cp node_modules/eruda/eruda.js dist/eruda/
# SPA fallback : GitHub Pages renvoie 404 pour les routes inconnues
cp dist/index.html dist/404.html
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- id: deploy
uses: actions/deploy-pages@v4