feat: add GitVerse workflow for documentation build and deployment
This commit is contained in:
@@ -41,18 +41,11 @@ jobs:
|
|||||||
run: mkdocs build
|
run: mkdocs build
|
||||||
working-directory: doc/lwc-doc
|
working-directory: doc/lwc-doc
|
||||||
|
|
||||||
- name: Upload Pages artifact (GitHub)
|
- name: Upload Pages artifact
|
||||||
if: github.server_url == 'https://github.com'
|
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: doc/lwc-doc/site/
|
path: doc/lwc-doc/site/
|
||||||
|
|
||||||
- name: Upload Pages artifact (GitVerse)
|
|
||||||
if: github.server_url != 'https://github.com'
|
|
||||||
uses: gitverse/upload-pages-artifact@v1.0.0
|
|
||||||
with:
|
|
||||||
path: doc/lwc-doc/site/
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -60,9 +53,4 @@ jobs:
|
|||||||
name: github-pages
|
name: github-pages
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
if: github.server_url == 'https://github.com'
|
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v4
|
||||||
|
|
||||||
- name: Deploy to GitVerse Pages
|
|
||||||
if: github.server_url != 'https://github.com'
|
|
||||||
uses: gitverse/deploy-pages@v1.0.0
|
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
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
|
||||||
Reference in New Issue
Block a user