This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
name: Deploy Docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -5,19 +13,21 @@ jobs:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Dependencies
|
||||
- name: Build and Deploy
|
||||
run: |
|
||||
# 1. venv erstellen & Abhängigkeiten installieren
|
||||
python3 -m venv .venv
|
||||
.venv/bin/pip install --upgrade pip
|
||||
.venv/bin/pip install -r doc/requirements.txt
|
||||
|
||||
- name: Build Documentation
|
||||
run: |
|
||||
|
||||
# 2. Dokumentation bauen
|
||||
.venv/bin/python -m mkdocs build
|
||||
|
||||
# 3. Falls die Verzeichnisse stimmen, liegt das Ergebnis in ./site
|
||||
|
||||
- name: Deploy to Gitea Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./site
|
||||
publish_branch: pages
|
||||
publish_branch: pages
|
||||
Reference in New Issue
Block a user