Files
create/.gitea/workflows/docs.yml
forbes-0023 65a2bb98db
Some checks failed
Build and Test / build (pull_request) Has been cancelled
fix(ci): replace actions/checkout with git clone in docs workflow
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.
2026-02-09 08:20:38 -06:00

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/