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:12:42 UTC

[unomi] branch unomi-1.5.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.5.x
in repository https://gitbox.apache.org/repos/asf/unomi.git


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

commit 1997e8a8ad558c8ebae989268c40e58c0eb6e177
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.
    
    (cherry picked from commit d3375d09091cc59b7b550c1e244e4825e2ccb70d)
---
 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!