Skip to content

bonsai-docs

bonsai-docs #20

Workflow file for this run

name: bonsai-docs
on:
workflow_dispatch:
jobs:
bonsai-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Clone IfcOpenShell
env:
GH_APIKEY: ${{ secrets.GH_APIKEY }}
run: |
git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/IfcOpenShell
cd IfcOpenShell
git checkout 5db65f404
- name: Install dependencies
run: |
cd IfcOpenShell/src/bonsai/docs
pip install -r requirements.txt
- name: Build documentation
run: |
cd IfcOpenShell/src/bonsai/docs
make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: IfcOpenShell/bonsaibim_org_docs
publish_branch: main
cname: docs.bonsaibim.org
publish_dir: IfcOpenShell/src/bonsai/docs/_build/html