Skip to content

Update CI-Workflow-Update, Requirements und MkDocs-Sync #352

Update CI-Workflow-Update, Requirements und MkDocs-Sync

Update CI-Workflow-Update, Requirements und MkDocs-Sync #352

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
types: [opened, synchronize, reopened]
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Caching dependencies
uses: actions/cache@v3
with:
key: ${{ github.ref }}
path: .cache
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build English
run: mkdocs build -f config/en/mkdocs.yml
- name: Build German
run: mkdocs build -f config/de/mkdocs.yml
- name: Copy common root files (including legacy redirects)
run: cp -R docs/root/* site
- name: Deploy
if: github.ref == 'refs/heads/master' && success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site