fix: update documentation workflows for GitHub and GitVerse compatibility

This commit is contained in:
Даниил Грабарь
2026-06-18 07:16:40 +03:00
parent de0117af94
commit ec4e1d87ad
2 changed files with 13 additions and 49 deletions
+13 -4
View File
@@ -19,10 +19,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v4
- name: Setup Python 3.12
uses: actions/setup-python@v6
uses: actions/setup-python@v5
with:
python-version: '3.12'
@@ -42,11 +42,12 @@ jobs:
working-directory: doc/lwc-doc
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v1.0.0
with:
path: doc/lwc-doc/site/
deploy:
deploy-github:
if: github.server_url == 'https://github.com'
needs: build
runs-on: ubuntu-latest
environment:
@@ -54,3 +55,11 @@ jobs:
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
deploy-gitverse:
if: github.server_url != 'https://github.com'
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitVerse Pages
uses: actions/deploy-pages@v1.0.0
-45
View File
@@ -1,45 +0,0 @@
name: Документация
on:
push:
branches:
- master
jobs:
build:
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 Pages artifact
uses: gitverse/upload-pages-artifact@v1.0.0
with:
path: doc/lwc-doc/site/
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitVerse Pages
uses: gitverse/deploy-pages@v1.0.0