Repair Landing pages #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy VFT Reports to Pages | |
| on: | |
| push: | |
| branches: [ main ] # Se activa cada vez que subes algo a main | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: 📥 Checkout | |
| uses: actions/checkout@v3 | |
| - name: 🐍 Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: 📦 Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install "jupyter-book<2" | |
| - name: 🏗️ Build the book | |
| run: | | |
| # Construye el libro mostrando todos los errores | |
| jupyter-book build . | |
| # Necesario para que GitHub Pages sirva carpetas con _ (_static, _images, etc.) | |
| touch _build/html/.nojekyll | |
| # Depuración: Lista los archivos para ver dónde quedó el _build | |
| echo "--- REVISANDO CARPETAS GENERADAS ---" | |
| ls -la | |
| ls -la _build/ || echo "⚠️ No existe la carpeta _build en la raíz" | |
| - name: 🚀 Deploy to GitHub Pages | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| folder: _build/html # Si tus archivos están en la raíz, aquí se genera | |
| branch: gh-pages |