diff --git a/.github/workflows/release-branch-cut.yml b/.github/workflows/release-branch-cut.yml index 0769167e9..d5d796d09 100644 --- a/.github/workflows/release-branch-cut.yml +++ b/.github/workflows/release-branch-cut.yml @@ -86,7 +86,7 @@ jobs: echo "Branch '$BRANCH_NAME' does not exist, proceeding with creation" - - name: Create and push release branch + - name: Create release branch id: set_output run: | COMMIT_SHA="${{ steps.validate.outputs.COMMIT_SHA }}" @@ -98,11 +98,33 @@ jobs: # Create branch from the specified commit git checkout -b "$BRANCH_NAME" "$COMMIT_SHA" - # Push the new branch - git push origin "$BRANCH_NAME" - echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT - echo "Successfully created and pushed branch '$BRANCH_NAME' from commit '$COMMIT_SHA'" + echo "Successfully created branch '$BRANCH_NAME' from commit '$COMMIT_SHA'" + + - name: Update version references in documentation + run: | + BRANCH_NAME="${{ github.event.inputs.branch_name }}" + # Extract version from branch name (e.g., release/v0.5.8 -> v0.5.8) + VERSION=$(echo "$BRANCH_NAME" | sed 's/release\///') + + # Update git clone version references in docs + sed -i "s/git clone -b v[0-9]\+\.[0-9]\+\.[0-9]\+\.\?post\?[0-9]*/git clone -b $VERSION/" docs/get_started/install.md + sed -i "s/git clone -b v[0-9]\+\.[0-9]\+\.[0-9]\+\.\?post\?[0-9]*/git clone -b $VERSION/" docs/platforms/amd_gpu.md + + # Check if any changes were made + if git diff --quiet; then + echo "No version references needed updating" + else + git add docs/get_started/install.md docs/platforms/amd_gpu.md + git commit -m "docs: update version references to $VERSION" + echo "Updated version references to $VERSION" + fi + + - name: Push release branch + run: | + BRANCH_NAME="${{ steps.set_output.outputs.branch_name }}" + git push origin "$BRANCH_NAME" + echo "Successfully pushed branch '$BRANCH_NAME'" - name: Summary run: | diff --git a/benchmark/deepseek_v3/README.md b/benchmark/deepseek_v3/README.md index ec9763fa5..cf6a569cb 100644 --- a/benchmark/deepseek_v3/README.md +++ b/benchmark/deepseek_v3/README.md @@ -33,7 +33,7 @@ Add [performance optimization options](#performance-optimization-options) as nee ```bash # Installation -pip install "sglang[all]>=0.5.6.post2" +pip install sglang # Launch python3 -m sglang.launch_server --model deepseek-ai/DeepSeek-V3 --tp 8 --trust-remote-code diff --git a/docs/get_started/install.md b/docs/get_started/install.md index c8538f0b9..cee24d05c 100644 --- a/docs/get_started/install.md +++ b/docs/get_started/install.md @@ -47,7 +47,7 @@ uv pip install "https://github.com/sgl-project/whl/releases/download/vX.Y.Z/sgl_ ```bash # Use the last release branch -git clone -b v0.5.6.post2 https://github.com/sgl-project/sglang.git +git clone -b v0.5.9 https://github.com/sgl-project/sglang.git cd sglang # Install the python packages diff --git a/docs/platforms/amd_gpu.md b/docs/platforms/amd_gpu.md index 473a9c568..613bd39ba 100644 --- a/docs/platforms/amd_gpu.md +++ b/docs/platforms/amd_gpu.md @@ -44,7 +44,7 @@ You can install SGLang using one of the methods below. ```bash # Use the last release branch -git clone -b v0.5.6.post2 https://github.com/sgl-project/sglang.git +git clone -b v0.5.9 https://github.com/sgl-project/sglang.git cd sglang # Compile sgl-kernel