Skip to content

Commit

Permalink
ci: do not remove oldest vesion
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Jan 7, 2025
1 parent ea2fb89 commit 090b2b7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ sed -i '/^- \[GreptimeCloud\]/d' i18n/zh/docusaurus-plugin-content-docs/version-
echo "Generating new version"
npm run docusaurus docs:version $VERSION

echo "Removing oldest version"
OLDEST_VERSION=$(jq -r '.[-1]' versions.json)
rm -rf versioned_docs/version-$OLDEST_VERSION
rm -rf i18n/zh/docusaurus-plugin-content-docs/version-$OLDEST_VERSION/
rm i18n/zh/docusaurus-plugin-content-docs/version-$OLDEST_VERSION.json
rm versioned_sidebars/version-$OLDEST_VERSION-sidebars.json
jq '.[:-1]' versions.json > temp.json && mv temp.json versions.json
# echo "Removing oldest version"
# OLDEST_VERSION=$(jq -r '.[-1]' versions.json)
# rm -rf versioned_docs/version-$OLDEST_VERSION
# rm -rf i18n/zh/docusaurus-plugin-content-docs/version-$OLDEST_VERSION/
# rm i18n/zh/docusaurus-plugin-content-docs/version-$OLDEST_VERSION.json
# rm versioned_sidebars/version-$OLDEST_VERSION-sidebars.json
# jq '.[:-1]' versions.json > temp.json && mv temp.json versions.json

# echo "Set new default"
# npm run docusaurus docs:use-version $VERSION

0 comments on commit 090b2b7

Please sign in to comment.