This is an automated email from the ASF dual-hosted git repository.
chengpan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/celeborn-website.git
The following commit(s) were added to refs/heads/main by this push:
new f57c8d6 Fix decompressed file name #43
f57c8d6 is described below
commit f57c8d6540a169e595a5c1494a461f45b60f468b
Author: cxzl25 <[email protected]>
AuthorDate: Thu Mar 28 10:09:46 2024 +0800
Fix decompressed file name #43
---
.github/bin/build_docs.sh | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/.github/bin/build_docs.sh b/.github/bin/build_docs.sh
index 1e33534..2e8d8f0 100755
--- a/.github/bin/build_docs.sh
+++ b/.github/bin/build_docs.sh
@@ -36,7 +36,11 @@ TAR_NAME=${REF_VERSION_NAME##*/}
if [[ "$REF_VERSION_NAME" == *"-tm"* ]] ;then
DIR_VERSION_NAME=$(echo "$TAR_NAME" | sed -r "s/v*(.*)\.tar\.gz/\1/g")
- TAR_DIR_NAME=celeborn-$DOC_LINK_PATH
+ if [[ "$REF_VERSION_NAME" == *"-incubating"* ]] ;then
+ TAR_DIR_NAME=incubator-celeborn-$DOC_LINK_PATH
+ else
+ TAR_DIR_NAME=celeborn-$DOC_LINK_PATH
+ fi
wget
"https://github.com/apache/celeborn/releases/download/${REF_VERSION_NAME}"
else
DIR_VERSION_NAME=$(echo "$TAR_NAME" | sed -r "s/v*(.*)\.tar\.gz/\1/g")
@@ -52,4 +56,4 @@ mkdir -p docs
if [ -d docs/$DOC_LINK_PATH ]; then rm -r docs/$DOC_LINK_PATH; fi
mv $TAR_DIR_NAME/site docs/$DOC_LINK_PATH
git add .
-git commit -m "docs/$DOC_LINK_PATH"
\ No newline at end of file
+git commit -m "docs/$DOC_LINK_PATH"