Añadir .github/workflows/deploy-docs.yaml

This commit is contained in:
2026-04-15 15:06:23 +02:00
parent 8af77d0ddc
commit ffb5b3e538

33
.github/workflows/deploy-docs.yaml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Deploy Docs to Synology
on:
push:
branches:
- main
paths:
- 'docs/**'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: node:20-bullseye
options: >-
--dns 192.168.1.1
--add-host git.natxocc.com:host-gateway
--add-host gitea:host-gateway
-v /volume1/webdocs/sigpro/ui:/mnt/nas_docsui # <--- Cambiamos el nombre interno
steps:
- name: Checkout código
uses: actions/checkout@v4
with:
fetch-depth: 1
env:
GIT_CONFIG_PARAMETERS: "'url.https://git.natxocc.com/.insteadOf=http://gitea:3000/'"
- name: Copiar archivos
run: |
cp -r docs/. /mnt/nas_docsui/
ls -la /mnt/nas_docsui