name: Deploy Docs to Synology on: push: branches: - main paths: - 'docs/**' workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest container: image: node:20-bullseye # <--- Esta imagen ya tiene Node, así que checkout funcionará options: >- --dns 192.168.1.1 --add-host git.natxocc.com:host-gateway --add-host gitea:host-gateway -v /volume1/web/sigpro:/target_folder steps: - name: Instalar rsync run: | apt-get update && apt-get install -y rsync - name: Forzar Dominio Limpio run: | git config --global url."http://git.natxocc.com/".insteadOf "http://gitea:3000/" git config --global --add safe.directory /workspace/natxocc/sigpro - name: Checkout código uses: actions/checkout@v4 with: fetch-depth: 1 - name: Sincronizar archivos a Web Station run: | # Sincronizamos el contenido de docs/ al volumen mapeado en Synology rsync -av --delete docs/ /target_folder/