Files
test-mkdocs/.gitea/workflows/deploy-docs.yaml
T
daniel dd94aa460a
Build and Deploy MkDocs / deploy-docs (push) Failing after 5m33s
change from ssh to local cp
2026-10-10 15:46:48 +02:00

35 lines
861 B
YAML

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 --root-user-action=ignore --upgrade pip
pip install --root-user-action=ignore mkdocs mkdocs-material
- name: Build Static Site
run: mkdocs build
- name: Deploy to Web Server Folder
run: |
# Clear the destination folder first to remove old deleted files
rm -rf /var/www/git-pages/*
# Copy everything from the built 'site' folder directly to your web root
cp -R site/* /var/www/git-pages/