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 e0d1fa1 commit 9c5e236
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/bin/build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c5e236

Please sign in to comment.