Files
lasertag/.gitea/workflows/deploy.yaml
Eduard Iten a7d39f26e0
Some checks failed
Deploy Docs / build-and-deploy (push) Failing after 19s
Actionmtest
2026-01-04 12:33:22 +01:00

36 lines
1.0 KiB
YAML

name: Deploy Docs
on:
push:
branches:
- dev
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: https://github.com/actions/checkout@v3
- name: Build Docs
run: |
# 1. Virtuelle Umgebung erstellen
python3 -m venv .venv
.venv/bin/pip install --upgrade pip
# 2. Abhängigkeiten installieren (Pfad zu deiner requirements.txt)
.venv/bin/pip install -r doc/requirements.txt
# 3. MkDocs Build (erzeugt den Ordner doc/site)
.venv/bin/python -m mkdocs build -f doc/mkdocs.yml
- name: Deploy to Proxmox Webserver
uses: https://github.com/burnett01/rsync-deployments@5.2.1
with:
switches: -avzr --delete
path: ./doc/site/
remote_path: /var/www/pages/lasertag
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: deploy
remote_key: ${{ secrets.DEPLOY_SSH_KEY }}