mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-05 23:41:44 +00:00
abb19e0870
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: Build and Deploy Unstable Documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- v0.8.0 # Trigger the workflow on pushes to the default branch which is currently v0.8.0
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
cd src/bonsai/docs # Navigate to the docs directory
|
|
pip install -r requirements.txt # Install dependencies from requirements.txt
|
|
|
|
- name: Build documentation
|
|
run: |
|
|
cd src/bonsai/docs # Navigate to the docs directory
|
|
make html # Build the documentation
|
|
|
|
- name: Deploy to GitHub Pages (Unstable)
|
|
uses: peaceiris/actions-gh-pages@v4
|
|
with:
|
|
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} # SSH key for deployment
|
|
external_repository: IfcOpenShell/bonsaibim_org_docs_unstable # Target repository
|
|
publish_branch: main # Branch to deploy to
|
|
cname: docs-unstable.bonsaibim.org # Custom domain for unstable docs
|
|
publish_dir: src/bonsai/docs/_build/html # Directory containing built docs |