From b03415fdb861082e277a75140ac95c5a70a1d213 Mon Sep 17 00:00:00 2001 From: MarcelineVPQ Date: Sun, 17 May 2026 12:30:50 -0600 Subject: [PATCH] ci(release): trigger web config rebuild on new firmware release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a repository_dispatch step to the release workflow that pings the DS5Dongle-OLED-Config-Web repo with event-type 'firmware-released' after the UF2s are uploaded. The web repo's deploy.yml listens for that event and re-runs its build, which re-fetches the latest release UF2 and bundles it into the GH Pages site. Requires a fine-grained PAT stored as WEB_REPO_DISPATCH_PAT secret on this repo, scoped to: - Repository: MarcelineVPQ/DS5Dongle-OLED-Config-Web - Permissions: Actions: Write, Metadata: Read If the secret isn't set, the step fails 401 and continue-on-error swallows it — release upload still succeeds. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/release.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 41a9148..3242683 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -109,3 +109,17 @@ jobs: GH_TOKEN: ${{ github.token }} run: | gh release upload "${{ github.event.release.tag_name }}" artifacts/*.uf2 --clobber + + # Notify the web config repo so its GH Pages deploy rebuilds and + # bundles this fresh UF2 into the site. If the WEB_REPO_DISPATCH_PAT + # secret isn't configured on this repo, the dispatch call fails 401 + # and continue-on-error swallows it — the web app keeps serving the + # previously-bundled UF2 until its own deploy is manually triggered. + - name: Trigger web config rebuild + continue-on-error: true + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.WEB_REPO_DISPATCH_PAT }} + repository: MarcelineVPQ/DS5Dongle-OLED-Config-Web + event-type: firmware-released + client-payload: '{"tag": "${{ github.event.release.tag_name }}", "title": "${{ github.event.release.name }}"}'