[Doc] Update version references and add automation (#18409)
This commit is contained in:
committed by
GitHub
parent
44208d2adf
commit
1b76eb9361
32
.github/workflows/release-branch-cut.yml
vendored
32
.github/workflows/release-branch-cut.yml
vendored
@@ -86,7 +86,7 @@ jobs:
|
|||||||
|
|
||||||
echo "Branch '$BRANCH_NAME' does not exist, proceeding with creation"
|
echo "Branch '$BRANCH_NAME' does not exist, proceeding with creation"
|
||||||
|
|
||||||
- name: Create and push release branch
|
- name: Create release branch
|
||||||
id: set_output
|
id: set_output
|
||||||
run: |
|
run: |
|
||||||
COMMIT_SHA="${{ steps.validate.outputs.COMMIT_SHA }}"
|
COMMIT_SHA="${{ steps.validate.outputs.COMMIT_SHA }}"
|
||||||
@@ -98,11 +98,33 @@ jobs:
|
|||||||
# Create branch from the specified commit
|
# Create branch from the specified commit
|
||||||
git checkout -b "$BRANCH_NAME" "$COMMIT_SHA"
|
git checkout -b "$BRANCH_NAME" "$COMMIT_SHA"
|
||||||
|
|
||||||
# Push the new branch
|
|
||||||
git push origin "$BRANCH_NAME"
|
|
||||||
|
|
||||||
echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
|
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
|
- name: Summary
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Add [performance optimization options](#performance-optimization-options) as nee
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Installation
|
# Installation
|
||||||
pip install "sglang[all]>=0.5.6.post2"
|
pip install sglang
|
||||||
|
|
||||||
# Launch
|
# Launch
|
||||||
python3 -m sglang.launch_server --model deepseek-ai/DeepSeek-V3 --tp 8 --trust-remote-code
|
python3 -m sglang.launch_server --model deepseek-ai/DeepSeek-V3 --tp 8 --trust-remote-code
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ uv pip install "https://github.com/sgl-project/whl/releases/download/vX.Y.Z/sgl_
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Use the last release branch
|
# 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
|
cd sglang
|
||||||
|
|
||||||
# Install the python packages
|
# Install the python packages
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ You can install SGLang using one of the methods below.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Use the last release branch
|
# 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
|
cd sglang
|
||||||
|
|
||||||
# Compile sgl-kernel
|
# Compile sgl-kernel
|
||||||
|
|||||||
Reference in New Issue
Block a user