Add step to update sgl-kernel whl index (#3110)

This commit is contained in:
Ke Bao
2025-01-25 02:03:01 +08:00
committed by GitHub
parent a22f60a313
commit 665e5e85f6
2 changed files with 35 additions and 0 deletions

View File

@@ -42,6 +42,8 @@ jobs:
needs: build-wheels
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
with:
@@ -57,3 +59,20 @@ jobs:
token: ${{ secrets.WHL_TOKEN }}
files: |
sgl-kernel/dist/*
- name: Clone wheel index
run: git clone https://oauth2:${WHL_TOKEN}@github.com/sgl-project/whl.git sgl-whl
env:
WHL_TOKEN: ${{ secrets.WHL_TOKEN }}
- name: Update wheel index
run: python3 scripts/update_kernel_whl_index.py
- name: Push wheel index
run: |
cd sgl-whl
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "update whl index"
git push