From ae5b4791f1134fcac1844f74415156e05ee8a44d Mon Sep 17 00:00:00 2001 From: Eduard Iten Date: Sun, 4 Jan 2026 12:16:24 +0100 Subject: [PATCH] Action script angepasst --- .gitea/workflows/deploy.yaml | 42 +++++++----------------------------- 1 file changed, 8 insertions(+), 34 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index ab31b03..8f4005d 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,35 +1,9 @@ -name: Deploy Docs - -on: - push: - branches: - - dev - workflow_dispatch: - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v3 - - - name: Build and Deploy - run: | - # 1. venv erstellen - python3 -m venv .venv - .venv/bin/pip install --upgrade pip - - # 2. Pfad zur requirements.txt anpassen - .venv/bin/pip install -r doc/requirements.txt - - # 3. MkDocs sagen, wo die Konfigurationsdatei liegt (-f Parameter) - .venv/bin/python -m mkdocs build -f doc/mkdocs.yml - - - name: Deploy to Gitea Pages - uses: peaceiris/actions-gh-pages@v3 +- name: Deploy to Proxmox Webserver + uses: https://github.com/burnett01/rsync-deployments@5.2.1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - # 4. Pfad zum generierten HTML-Ordner anpassen - # MkDocs erstellt 'site' standardmäßig dort, wo die yml liegt - publish_dir: ./doc/site - publish_branch: pages \ No newline at end of file + switches: -avzr --delete + path: ./doc/site/ # Das ist der Ordner, den MkDocs gerade gebaut hat + remote_path: /var/www/pages/lasertag + remote_host: ${{ secrets.DEPLOY_HOST }} + remote_user: deploy + remote_key: ${{ secrets.DEPLOY_SSH_KEY }} # Dein neuer Ed25519 Key \ No newline at end of file