This is an automated email from the ASF dual-hosted git repository.

junrushao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-ffi.git


The following commit(s) were added to refs/heads/main by this push:
     new 9d54755  chore(release): Test wheel building on every `main` commit 
(#149)
9d54755 is described below

commit 9d547555043e7cddc30be757bcf3572f45b2ea7c
Author: Junru Shao <[email protected]>
AuthorDate: Thu Oct 16 11:18:22 2025 -0700

    chore(release): Test wheel building on every `main` commit (#149)
---
 .github/workflows/publish_wheel.yml | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/publish_wheel.yml 
b/.github/workflows/publish_wheel.yml
index 5930e77..5979feb 100644
--- a/.github/workflows/publish_wheel.yml
+++ b/.github/workflows/publish_wheel.yml
@@ -18,10 +18,12 @@
 name: Publish wheel
 
 on:
+  push:
+    branches: [main]        # <-- build on every commit to main
   workflow_dispatch:
     inputs:
       branch:
-        description: "Branch or tag publish"
+        description: "Branch or tag to publish (manual run)"
         required: true
 
 jobs:
@@ -42,7 +44,8 @@ jobs:
 
       - uses: actions/checkout@v4
         with:
-          ref: ${{ github.event.inputs.ref }}
+          # Use the input only for manual runs; otherwise use the triggering 
ref
+          ref: ${{ github.event_name == 'workflow_dispatch' && inputs.branch 
|| github.ref }}
           submodules: recursive
 
       - uses: ./.github/actions/detect-env-vars
@@ -84,6 +87,7 @@ jobs:
     steps:
       - uses: actions/checkout@v4
         with:
+          ref: ${{ github.event_name == 'workflow_dispatch' && inputs.branch 
|| github.ref }}
           submodules: recursive
 
       - uses: astral-sh/setup-uv@v4
@@ -106,7 +110,7 @@ jobs:
     permissions:
       id-token: write
       attestations: write
-    if: github.event_name == 'workflow_dispatch'
+    if: github.event_name == 'workflow_dispatch'   # <-- publish only on 
manual trigger
     steps:
       - uses: actions/download-artifact@v4
         with:

Reply via email to