Skip to content

Commit

Permalink
[CELEBORN-1295][FOLLOW] Add tm to Celeborn's website for older release.
Browse files Browse the repository at this point in the history
  • Loading branch information
FMX committed Feb 28, 2024
1 parent 9c5e236 commit d9fc29e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/bin/build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ REF_VERSION_NAME="$1"
DOC_LINK_PATH="$2"

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

if [[ "$REF_VERSION_NAME" == *"-tm"* ]] ;then
echo "match"
DIR_VERSION_NAME=$(echo "$TAR_NAME" | sed -r "s/v*(.*)\.tar\.gz/\1/g")
TAR_DIR_NAME=incubator-celeborn-$DOC_LINK_PATH
wget "https://github.com/apache/incubator-celeborn/releases/download/${REF_VERSION_NAME}"
else
echo "not match"
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}"
fi

Expand Down

0 comments on commit d9fc29e

Please sign in to comment.