| |
|
| |
set -xeuo pipefail
|
| |
|
| - |
if [ "$(git branch --show-current)" = publish ]; then
|
| - |
echo on main branch
|
| - |
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
|
| + |
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 not on main branch
|
| + |
echo web root is not set, not publishing arch doc
|
| |
fi
|