ci: add job to build docs and trigger handbook pipeline for deployment

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7065

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Pablo Correa Gómez
2025-09-24 12:37:31 +02:00
parent ca97b715c7
commit ce47303e35
2 changed files with 44 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh -e
# Copyright 2025 Pablo Correa Gomez
# SPDX-License-Identifier: GPL-3.0-or-later
# Description: create documentation with sphinx
# Options: with-dot-git
# Artifacts: build/site
# https://postmarketos.org/pmb-ci
# Install dependencies
if [ "$(id -u)" = 0 ]; then
set -x
apk -q add git nodejs npm
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
npm install antora
npx antora -v
# FIXME: https://gitlab.com/antora/antora/-/issues/1183
git clone --depth 1 https://gitlab.postmarketos.org/postmarketOS/handbook
npx antora --clean antora-test.yml