concepts-test/.forgejo/workflows/deploydocs.yaml
Stephan Heunis 8ed83099e2
All checks were successful
Build and deploy schema docs / Build and deploy docs (push) Successful in 40s
use full path for orinoco-concepts source
2026-11-24 15:28:39 +02:00

50 lines
1.5 KiB
YAML

name: Build and deploy schema docs
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
name: Build and deploy docs
runs-on: debian-latest
steps:
- name: Checkout current repo to root
uses: actions/checkout@v6
- name: Checkout define-things
uses: actions/checkout@v6
with:
repository: orinoco/define-things
ref: main
path: define-things
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install define-things package and patch linkml
run: |
uv sync --project ./define-things/ --group docs
uv run --project ./define-things/ --group docs dt patch-linkml
- name: Checkout orinoco-concepts
uses: actions/checkout@v6
with:
repository: orinoco/concepts
ref: main
path: orinoco-concepts
- name: Build
run: |
echo "dlschemas:things/v2: '$(pwd)/orinoco-concepts/src/things/v2'" > "${{ runner.temp }}/importmap.yaml"
uv run --project ./define-things/ --group docs dt generate \
-p . \
-s src/registration/unreleased \
-f doc \
-i "${{ runner.temp }}/importmap.yaml"
ls -la ./build
mv ./build/mkdocs-site ./build/upload
- name: Deploy
uses: actions/git-pages@v2
with:
site: https://jsheunis.hub.psychoinformatics.de/concepts-test
server: hub.psychoinformatics.de
token: ${{ forgejo.token }}
source: ./build/upload/