Some checks failed
Build and Test / build (pull_request) Has been cancelled
The docs runner is a bare host without Node.js, so actions/checkout@v4 fails with 'Cannot find: node in PATH'. Replace with a plain git fetch/checkout that works without Node.
29 lines
590 B
YAML
29 lines
590 B
YAML
name: Deploy Docs
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "docs/**"
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: docs
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
if [ -d .git ]; then
|
|
git fetch origin main
|
|
git checkout -f origin/main
|
|
else
|
|
git clone --depth 1 --branch main https://git.kindred-systems.com/kindred/create.git .
|
|
fi
|
|
|
|
- name: Build mdBook
|
|
run: mdbook build docs/
|
|
|
|
- name: Deploy
|
|
run: |
|
|
rm -rf /opt/git/docs/book/*
|
|
cp -r docs/book/* /opt/git/docs/book/
|