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

urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 9fa353f4a8 feat: support specify build versions
9fa353f4a8 is described below

commit 9fa353f4a8686044167b93dc843d6894d2ae8498
Author: Li Li <[email protected]>
AuthorDate: Wed Apr 20 14:23:05 2022 +0800

    feat: support specify build versions
    
    Signed-off-by: Li Li <[email protected]>
---
 site2/website-next/scripts/split-version-build.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/site2/website-next/scripts/split-version-build.sh 
b/site2/website-next/scripts/split-version-build.sh
index 356564bbc5..d7296608ec 100755
--- a/site2/website-next/scripts/split-version-build.sh
+++ b/site2/website-next/scripts/split-version-build.sh
@@ -47,11 +47,14 @@ function _buildVersion() {
     echo "..." $buildVersion "build done..."
 }
 
+# sometimes need build specify versions
+SUPPLEMENT_VERSIONS="2.9.2,2.9.1"
+
 # Build only the versions that has changed
 # Build next version that has any changed
 while read version; do
     buildVersion=$version
-    if [[ $@ == *website-next/versioned_docs/version-$version* || 
$buildVersion == "next" || $buildVersion == $latest || $BUILD_ALL_VERSION == 
"1" || $BUILD_VERSION == *$buildVersion* ]]; then
+    if [[ $@ == *website-next/versioned_docs/version-$version* || 
$buildVersion == "next" || $BUILD_ALL_VERSION == "1" || $BUILD_VERSION == 
*$buildVersion* || $SUPPLEMENT_VERSIONS == *$buildVersion* ]]; then
         _buildVersion
     else
         echo "..." $buildVersion "no change, skip"

Reply via email to