mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
3ad247b9a7
* Create docs-deployment.yml * Update docs-deployment.yml Add CNAME * Update docs-deployment.yml * Create docs-deployment-unstable.yml * Add requirements.txt
36 lines
929 B
YAML
36 lines
929 B
YAML
name: Build and Deploy Stable Documentation
|
|
|
|
on:
|
|
workflow_dispatch: # Manual trigger
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
cd src/bonsai/docs
|
|
pip install -r requirements.txt # Run pip install from the docs directory
|
|
|
|
- name: Build documentation
|
|
run: |
|
|
cd src/bonsai/docs
|
|
make html
|
|
|
|
- name: Deploy to GitHub Pages (Stable)
|
|
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: src/bonsai/docs/_build/html |