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

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 886a1fdf0 ci: fix test of whether docs are dev or release version 
(#1920)
886a1fdf0 is described below

commit 886a1fdf0bd469c7a0bd8ea7c8f09edb52128f17
Author: David Li <[email protected]>
AuthorDate: Mon Jun 17 09:12:34 2024 +0900

    ci: fix test of whether docs are dev or release version (#1920)
    
    Fixes #1905.
    
    ---------
    
    Co-authored-by: Sutou Kouhei <[email protected]>
---
 ci/scripts/website_build.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ci/scripts/website_build.sh b/ci/scripts/website_build.sh
index 1f7f146e1..acbf22659 100755
--- a/ci/scripts/website_build.sh
+++ b/ci/scripts/website_build.sh
@@ -46,14 +46,17 @@ main() {
         exit 1
     fi
 
-    local -r regex='^([0-9]+\.[0-9]+\.[0-9]+)$'
+    # Docs use the ADBC release so it will just be 12, 13, 14, ...
+    local -r regex='^[0-9]+$'
     local directory="main"
     if [[ "${new_version}" =~ $regex ]]; then
+        echo "Adding docs for version ${new_version}"
         cp -r "${docs}" "${site}/${new_version}"
         git -C "${site}" add --force "${new_version}"
         directory="${new_version}"
     else
         # Assume this is dev docs
+        echo "Adding dev docs for version ${new_version}"
         rm -rf "${site}/main"
         cp -r "${docs}" "${site}/main"
         git -C "${site}" add --force "main"

Reply via email to