Files
radicle-ci-broker/doc/publish.sh
T
Lars Wirzenius 9c822c67d2 docs: always publish
This works around a limitation in the native CI adapter, which checks
out the commit, but doesn't tell the CI run from which branch it came
from.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-05-14 16:34:20 +03:00

12 lines
302 B
Bash

#!/bin/bash
set -xeuo pipefail
if [ "${RADICLE_CI_BROKER_WEBROOT:-unset}" != unset ]; then
echo web root set, publishing arch doc there
install -d -m 0755 "$RADICLE_CI_BROKER_WEBROOT"
install -m 0644 ./*.html "$RADICLE_CI_BROKER_WEBROOT"
else
echo web root is not set, not publishing arch doc
fi