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