From ffb5b3e538f22c7390d43a073e2345dde987f2a6 Mon Sep 17 00:00:00 2001 From: natxocc Date: Wed, 15 Apr 2026 15:06:23 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20.github/workflows/deploy-docs.yam?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-docs.yaml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/deploy-docs.yaml diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml new file mode 100644 index 0000000..97de0df --- /dev/null +++ b/.github/workflows/deploy-docs.yaml @@ -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 \ No newline at end of file