Skip to content

Release SGLang Kernel to PyPI #18

Release SGLang Kernel to PyPI

Release SGLang Kernel to PyPI #18

name: Release SGLang Kernel to PyPI
on:
push:
branches:
- main
paths:
- sgl-kernel/pyproject.toml
workflow_dispatch:
concurrency:
group: release-pypi-kernel-${{ github.ref }}
cancel-in-progress: true
jobs:
build-wheels:
runs-on: ubuntu-latest
strategy:
matrix:
cuda-version: ['12.1']
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Build wheel
run: |
cd sgl-kernel
chmod +x ./build.sh
./build.sh "${{ matrix.cuda-version }}"
- name: Upload to pypi
working-directory: sgl-kernel
run: |
pip install twine
python3 -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}