diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..4e231af59 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: release tag +on: + push: + branches: + - main + paths: + - "python/sglang/version.py" + workflow_dispatch: +jobs: + publish: + runs-on: ubuntu-latest + environment: 'prod' + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Get version + id: get_version + run: | + version=$(cat python/sglang/version.py | cut -d'"' -f2) + echo "TAG=v$version" >> $GITHUB_OUTPUT + + - name: Release + uses: softprops/action-gh-release@v1 + with: + name: Release ${{ steps.get_version.outputs.TAG }} + tag_name: ${{ steps.get_version.outputs.TAG }} diff --git a/python/pyproject.toml b/python/pyproject.toml index 135fa0771..354d0dbfe 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "sglang" -version = "0.2.2" +version = "0.2.3" description = "SGLang is yet another fast serving framework for large language models and vision language models." readme = "README.md" requires-python = ">=3.8" diff --git a/python/sglang/version.py b/python/sglang/version.py index b5fdc7530..d31c31eae 100644 --- a/python/sglang/version.py +++ b/python/sglang/version.py @@ -1 +1 @@ -__version__ = "0.2.2" +__version__ = "0.2.3"