Files
create/.gitea/workflows/docs.yml
forbes-0023 d6ad0fb43d
Some checks failed
Build and Test / build (pull_request) Failing after 1m38s
fix(ci): add docs workflow file to paths trigger
Changes to .gitea/workflows/docs.yml itself should also trigger
a docs rebuild so workflow fixes are immediately testable.
2026-02-09 08:43:32 -06:00

30 lines
626 B
YAML

name: Deploy Docs
on:
push:
branches: [main]
paths:
- "docs/**"
- ".gitea/workflows/docs.yml"
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/