deploy: pass --models-tag in release.yml demo + editor builds

The tag-triggered release pipeline built the demo (and backed editor)
without --models-tag, so modelsSourceConfig() returned null and every
kind=model3d ensure logged "(unserved)" — 3D component models never
loaded on demo.pcbjam.com. The manual deploy-demo.yml already passed
it; mirror its MODELS_TAG env (10.0.3) in release.yml for both builds.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UQRBzfidkoTU5yc7HnF9x7
This commit is contained in:
Gergő Törcsvári 2026-07-08 15:46:51 +02:00
commit 9697de7b26
No known key found for this signature in database
GPG key ID: 8E75F2CDE64E5322

View file

@ -33,6 +33,11 @@ env:
BUCKET: pcbjam-cdn
# KiCad library snapshot the demo points at (published by publish-libs.yml).
LIB_TAG: "10.0.3"
# kicad-packages3D snapshot the demo's lazy 3D models point at (published once
# to libs/kicad-models/<MODELS_TAG>/ — see scripts/deploy/publish-models.ts +
# upload-models-r2.sh; docs/features/3d-models). Empty ⇒ 3D models off.
# Keep in sync with deploy-demo.yml.
MODELS_TAG: "10.0.3"
PAGES_PROJECT: pcbjam-demo
PAGES_PROD_BRANCH: production
# Backed editor deployment (remote mode against the closed API). The closed
@ -124,6 +129,7 @@ jobs:
run: >
node scripts/deploy/build-demo.mjs --tag "${{ needs.meta.outputs.tag }}"
--cdn "$CDN" --lib-tag "$LIB_TAG"
${MODELS_TAG:+--models-tag "$MODELS_TAG"}
--plausible "${{ vars.PLAUSIBLE_DOMAIN }}"
- name: Ensure Pages project exists
@ -172,6 +178,7 @@ jobs:
node scripts/deploy/build-editor.mjs --tag "$RELEASE_TAG"
--cdn "$CDN" --api-base "$EDITOR_API_BASE"
--plausible "editor.pcbjam.com"
${MODELS_TAG:+--models-tag "$MODELS_TAG"}
- name: Ensure Pages project exists
run: >