Skip to content

build_docs

build_docs #50

Workflow file for this run

name: build_docs
on:
workflow_dispatch:
push:
branches: main
paths: "docs/**"
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Addon
uses: actions/checkout@v3
with:
path: CAD_Sketcher
- name: Checkout Blender Scripts
uses: actions/checkout@v3
with:
repository: blender/blender
path: blender-git
submodules: "true"
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: "pip"
- name: Install Dependencies
run: pip install "markdown<=3.3.7" "mkdocs>=1.3.1" mkdocs-material mkdocstrings mkdocs-autorefs lightgallery mkdocstrings-python
- name: Set Pythonpath
run: echo "PYTHONPATH=$PYTHONPATH:$GITHUB_WORKSPACE/blender-git/blender/release/scripts/modules:$GITHUB_WORKSPACE" >> $GITHUB_ENV
- name: Deploy
run: python3.11 -m mkdocs gh-deploy -f ./mkdocs.yml --force
working-directory: ./CAD_Sketcher