You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/04/01 06:31:12 UTC
[pulsar-site] branch main updated: feat: support build specify version with env param BUILD_VERSION
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 338872d feat: support build specify version with env param BUILD_VERSION
338872d is described below
commit 338872d96f92cb0f2290b3c1ef45cbca13347617
Author: Li Li <ur...@apache.org>
AuthorDate: Fri Apr 1 14:31:00 2022 +0800
feat: support build specify version with env param BUILD_VERSION
Signed-off-by: Li Li <ur...@apache.org>
---
site2/website-next/scripts/split-version-build.sh | 2 +-
site2/website-next/scripts/versions.json | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/site2/website-next/scripts/split-version-build.sh b/site2/website-next/scripts/split-version-build.sh
index 2ea4071..e3e1978 100755
--- a/site2/website-next/scripts/split-version-build.sh
+++ b/site2/website-next/scripts/split-version-build.sh
@@ -51,7 +51,7 @@ function _buildVersion() {
# Build next version that has any changed
while read version; do
buildVersion=$version
- if [[ $@ == *website-next/versioned_docs/version-$version* || $buildVersion == "next" || $BUILD_ALL_VERSION == "1" ]]; then
+ if [[ $@ == *website-next/versioned_docs/version-$version* || $buildVersion == "next" || $BUILD_ALL_VERSION == "1" || $buildVersion == $BUILD_VERSION ]]; then
_buildVersion
else
echo "..." $buildVersion "no change, skip"
diff --git a/site2/website-next/scripts/versions.json b/site2/website-next/scripts/versions.json
deleted file mode 100644
index f829e1e..0000000
--- a/site2/website-next/scripts/versions.json
+++ /dev/null
@@ -1 +0,0 @@
-["2.9.1"]