This is an automated email from the ASF dual-hosted git repository.
ethanfeng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-celeborn-website.git
The following commit(s) were added to refs/heads/main by this push:
new 9c5e236 [CELEBORN-1295][FOLLOW] Add tm to Celeborn's website for
older release.
9c5e236 is described below
commit 9c5e23671c8dc4fc554cb36282f2d52fbe4f5522
Author: mingji <[email protected]>
AuthorDate: Wed Feb 28 15:05:59 2024 +0800
[CELEBORN-1295][FOLLOW] Add tm to Celeborn's website for older release.
---
.github/bin/build_docs.sh | 9 ++++++++-
.github/workflows/site.yaml | 6 +++---
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/.github/bin/build_docs.sh b/.github/bin/build_docs.sh
index 01b4397..412aa06 100755
--- a/.github/bin/build_docs.sh
+++ b/.github/bin/build_docs.sh
@@ -36,7 +36,14 @@ TAR_NAME=${REF_VERSION_NAME##*/}
DIR_VERSION_NAME=$(echo "$TAR_NAME" | sed -r "s/v*(.*)\.tar\.gz/\1/g")
TAR_DIR_NAME=incubator-celeborn-$DIR_VERSION_NAME
-wget
"https://github.com/apache/incubator-celeborn/archive/refs/${REF_VERSION_NAME}"
+if [[ "$REF_VERSION_NAME" == *"-tm"* ]] ;then
+ echo "match"
+ wget
"https://github.com/apache/incubator-celeborn/releases/download/${REF_VERSION_NAME}"
+ else
+ echo "not match"
+ wget
"https://github.com/apache/incubator-celeborn/archive/refs/${REF_VERSION_NAME}"
+fi
+
tar -xzf $TAR_NAME
cd $TAR_DIR_NAME
mkdocs build
diff --git a/.github/workflows/site.yaml b/.github/workflows/site.yaml
index 4a9645f..1e5b296 100644
--- a/.github/workflows/site.yaml
+++ b/.github/workflows/site.yaml
@@ -52,9 +52,9 @@ jobs:
git add '.github/bin/build_docs.sh'
git commit -m '.github/bin/build_docs.sh'
- run: ./.github/bin/build_docs.sh 'heads/main.tar.gz' 'latest'
- - run: ./.github/bin/build_docs.sh 'tags/v0.2.1-incubating.tar.gz'
'0.2.1-incubating'
- - run: ./.github/bin/build_docs.sh 'tags/v0.3.2-incubating.tar.gz'
'0.3.2-incubating'
- - run: ./.github/bin/build_docs.sh 'tags/v0.4.0-incubating.tar.gz'
'0.4.0-incubating'
+ - run: ./.github/bin/build_docs.sh
'v0.2.1-incubating/incubator-celeborn-0.2.1-incubating-tm.tar.gz'
'0.2.1-incubating'
+ - run: ./.github/bin/build_docs.sh
'v0.3.2-incubating/incubator-celeborn-0.3.2-incubating-tm.tar.gz'
'0.3.2-incubating'
+ - run: ./.github/bin/build_docs.sh
'v0.4.0-incubating/incubator-celeborn-0.4.0-incubating-tm.tar.gz'
'0.4.0-incubating'
- run: |
echo 'publish:' >> .asf.yaml
echo ' whoami: asf-site' >> .asf.yaml