refactor: update GitHub Actions workflow for documentation build and deployment

This commit is contained in:
Даниил Грабарь
2026-06-18 06:37:53 +03:00
parent 4a2e23ffef
commit 985425b866
3 changed files with 31 additions and 54 deletions
-40
View File
@@ -1,40 +0,0 @@
name: Документация
on:
push:
branches:
- master
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install system dependencies (WeasyPrint/PDF)
run: |
sudo apt-get update -qq
sudo apt-get install -y \
libcairo2 libpango-1.0-0 libpangoft2-1.0-0 \
libgdk-pixbuf-2.0-0 libffi-dev \
fontconfig fonts-dejavu
- name: Install MkDocs
run: pip install mkdocs-material mkdocs-with-pdf
- name: Build Documentation
run: mkdocs build
working-directory: doc/lwc-doc
- name: Upload site as artifact
uses: actions/upload-artifact@v4
with:
name: documentation-site
path: doc/lwc-doc/site/
retention-days: 30