You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2022/12/08 19:10:11 UTC

[unomi] branch unomi-1.7.x updated: Add a condition around the Javadoc API copying to avoid stopping the script.

This is an automated email from the ASF dual-hosted git repository.

shuber pushed a commit to branch unomi-1.7.x
in repository https://gitbox.apache.org/repos/asf/unomi.git


The following commit(s) were added to refs/heads/unomi-1.7.x by this push:
     new 49b275abc Add a condition around the Javadoc API copying to avoid stopping the script.
49b275abc is described below

commit 49b275abc0c39958b464bae25541890d1a2dd279
Author: Serge Huber <sh...@jahia.com>
AuthorDate: Thu Dec 8 20:10:04 2022 +0100

    Add a condition around the Javadoc API copying to avoid stopping the script.
---
 generate-site.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/generate-site.sh b/generate-site.sh
index 21cce3236..6dcf2fb10 100755
--- a/generate-site.sh
+++ b/generate-site.sh
@@ -57,6 +57,8 @@ else
 fi
 mkdir -p target/staging/unomi-api
 mkdir -p target/staging/manual
-cp -R target/site/apidocs target/staging/unomi-api
+if [ "$LOCAL_BRANCH_NAME" == "master" ]; then
+  cp -R target/site/apidocs target/staging/unomi-api
+fi
 cp -Rf manual/target/generated-docs/html/* target/staging/manual
 echo Documentation generation completed!