This commit is contained in:
@@ -1,8 +1,35 @@
|
||||
- name: Deploy to Proxmox Webserver
|
||||
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/ # Das ist der Ordner, den MkDocs gerade gebaut hat
|
||||
path: ./doc/site/
|
||||
remote_path: /var/www/pages/lasertag
|
||||
remote_host: ${{ secrets.DEPLOY_HOST }}
|
||||
remote_user: deploy
|
||||
|
||||
Reference in New Issue
Block a user