Skip to content

Merge pull request #44 from bruin-data/terzioglub/dashboard-bruin-use… #52

Merge pull request #44 from bruin-data/terzioglub/dashboard-bruin-use…

Merge pull request #44 from bruin-data/terzioglub/dashboard-bruin-use… #52

Workflow file for this run

name: Docs Build
on:
push:
branches: [main]
paths:
- 'docs/**'
pull_request:
branches: [main]
paths:
- 'docs/**'
jobs:
docs-build:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.14.0'
cache: npm
cache-dependency-path: docs/package-lock.json
- name: Install dependencies
run: npx npm@11.10.0 install
working-directory: docs
- name: Build documentation
run: npm run docs:build
working-directory: docs
- name: Verify documentation output
run: |
if [ ! -d "./docs/.vitepress/dist" ]; then
echo "Docs build failed: Output directory not found!"
exit 1
fi