Unverified Commit 67ad4338 authored by Ke Bao's avatar Ke Bao Committed by GitHub
Browse files

Update tag name for whl release (#3127)

parent 3cab5f71
......@@ -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: |
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment