From a1dd1ec86117ebb60aafdac52e2cea4feca55961 Mon Sep 17 00:00:00 2001 From: gitlawr Date: Tue, 30 Jun 2026 15:24:21 +0800 Subject: [PATCH] ci: trigger backend pack on UI merge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After build-publish uploads the UI tarball to COS, dispatch a repository_dispatch event (ui-built) to gpustack/gpustack so the backend repack picks up the new UI. Skipped for tag pushes — release tags drive the backend pack via its own tag trigger. Requires a DISPATCH_PAT secret with actions:write on gpustack/gpustack. --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d0c0678..577e3ba2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,7 @@ name: CI on: + workflow_dispatch: {} push: branches: - 'main' @@ -117,3 +118,20 @@ jobs: remote_path: releases/${{ steps.version.outputs.version }}.tar.gz accelerate: true clean: false + + trigger-backend: + needs: build-publish + if: (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) || github.event_name == 'workflow_dispatch' + runs-on: ubuntu-22.04 + steps: + - name: Dispatch backend build + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.DISPATCH_PAT }} + repository: gpustack/gpustack + event-type: ui-built + client-payload: | + { + "ref": "${{ github.ref }}", + "sha": "${{ github.sha }}" + }