Update tag name for whl release (#3127)

This commit is contained in:
Ke Bao
2025-01-25 23:14:35 +08:00
committed by GitHub
parent 3cab5f71ea
commit 67ad4338e1

View File

@@ -4,8 +4,12 @@ on:
workflow_dispatch:
inputs:
tag_name:
required: true
type: string
push:
branches:
- main
paths:
- sgl-kernel/version.py
jobs:
build-wheels:
@@ -51,10 +55,20 @@ jobs:
merge-multiple: true
pattern: wheel-*
- name: Set tag name
id: set_tag_name
run: |
if [ -z "${{ inputs.tag_name }}" ]; then
TAG_NAME="v$(cat sgl-kernel/version.py | cut -d'"' -f2)"
echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
else
echo "tag_name=${{ inputs.tag_name }}" >> $GITHUB_OUTPUT
fi
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.tag_name }}
tag_name: ${{ steps.set_tag_name.outputs.tag_name }}
repository: sgl-project/whl
token: ${{ secrets.WHL_TOKEN }}
files: |