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: ...@@ -4,8 +4,12 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
tag_name: tag_name:
required: true
type: string type: string
push:
branches:
- main
paths:
- sgl-kernel/version.py
jobs: jobs:
build-wheels: build-wheels:
...@@ -51,10 +55,20 @@ jobs: ...@@ -51,10 +55,20 @@ jobs:
merge-multiple: true merge-multiple: true
pattern: wheel-* 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 - name: Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
tag_name: ${{ inputs.tag_name }} tag_name: ${{ steps.set_tag_name.outputs.tag_name }}
repository: sgl-project/whl repository: sgl-project/whl
token: ${{ secrets.WHL_TOKEN }} token: ${{ secrets.WHL_TOKEN }}
files: | 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