Skip to content

Add instructions on how to test code changes. (#458) #62

Add instructions on how to test code changes. (#458)

Add instructions on how to test code changes. (#458) #62

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 -r ./CAD_Sketcher/docs/requirements.txt
- 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 ./docs/mkdocs.yml --force
working-directory: ./CAD_Sketcher