fix: create git tags directly instead of temporary branches (#13168)

This commit is contained in:
alisonshao
2025-11-18 03:23:27 -08:00
committed by GitHub
parent 7e88b9c128
commit 6beb6e991f

View File

@@ -27,9 +27,9 @@ jobs:
version=$(cat python/sglang/version.py | cut -d'"' -f2)
echo "TAG=v$version" >> $GITHUB_OUTPUT
- name: Create and push fake tag
- name: Create and push tag
run: |
git config user.name "sglang-bot"
git config user.email "sglang-bot@users.noreply.github.com"
git checkout -b ${{ steps.get_version.outputs.TAG }}
git push --set-upstream origin ${{ steps.get_version.outputs.TAG }}
git tag ${{ steps.get_version.outputs.TAG }}
git push origin ${{ steps.get_version.outputs.TAG }}