ci(release): trigger web config rebuild on new firmware release
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) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
79d8841040
commit
b03415fdb8
@@ -109,3 +109,17 @@ jobs:
|
|||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
gh release upload "${{ github.event.release.tag_name }}" artifacts/*.uf2 --clobber
|
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 }}"}'
|
||||||
|
|||||||
Reference in New Issue
Block a user