Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
docs: always publish
Lars Wirzenius committed 2 years ago
commit 9c822c67d2896f2ff725149939c43228b27d6bdf
parent 98db404e737971ea8f9e58b34069547961d97726
1 file changed +5 -10
modified doc/publish.sh
@@ -2,15 +2,10 @@

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