mkdocs workflow
Build and Deploy MkDocs / deploy-docs (push) Canceled after 1m11s

This commit is contained in:
2026-10-10 09:09:01 +02:00
parent fbc7b30d9c
commit 20c0606046
3 changed files with 54 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
name: Build and Deploy MkDocs
on:
push:
branches:
- main
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install MkDocs & Plugins
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material
- name: Build Static Site
run: mkdocs build
- name: Deploy to Web Server via SSH
uses: https://git.weseng.de
with:
host: ${{ secrets.WEB_HOST }}
username: ${{ secrets.WEB_USER }}
key: ${{ secrets.WEB_KEY }}
source: "site/*"
target: "/var/www/git-pages/"
strip_components: 1 # Removes the "site/" folder layer so content dumps directly into your web root