my-red-pages

my-red-pages

Índice cross-negocio y buscador client-side de My-RED.

Arquitectura

Configuración inicial

  1. Crear repositorio público con este contenido.
  2. Añadir los secrets en Settings → Secrets and variables → Actions:
    • GOOGLE_SERVICE_ACCOUNT_JSON — JSON completo del SA myred-workers@my-red-produccion
    • SHEETS_CAMBIOS — ID del Sheet My-RED Cambios Índice
    • SHEETS_NEGOCIOS — ID del Sheet myred_negocios
    • SHEETS_UBICACIONES — ID del Sheet myred_ubicaciones
  3. Añadir la variable en Settings → Secrets and variables → Actions → Variables:
    • BASE_URL = https://my-red.net
  4. Activar GitHub Pages: Settings → Pages → Source: Deploy from a branch → Branch: main, folder /public.
  5. Ejecutar workflow manualmente la primera vez: Actions → Update Index → Run workflow.

DNS

Apuntar my-red.net a GitHub Pages (4 A records):

Y www.my-red.net CNAME → {usuario}.github.io.

Todos en modo DNS only (gris, sin proxy Cloudflare).

Verificación

```bash curl -I https://my-red.net/indice.json # 200 curl -I https://my-red.net/index.html # 200 curl -I https://my-red.net/robots.txt # 200 curl -I https://my-red.net/sitemap.xml # 200