fix(ci): copy CHANGELOG.md into the wasm docker stage — deploys broken since v0.47.0
Build and Deploy / build-and-push (push) Successful in 9m33s

whats_new_plugin embeds the changelog at compile time
(include_str!("../../CHANGELOG.md"), shipped 2026-07-13), but the
Dockerfile's wasm-builder stage copies an explicit file list that
never included CHANGELOG.md — every docker-build since (10 runs,
v0.48.x and v0.49.0 content) failed in build_wasm.sh while web-e2e
(full checkout) stayed green, so the web has been serving the
July 14 image.

Also add CHANGELOG.md to the workflow's trigger paths so changelog
cuts redeploy the web and the What's-new card stays fresh.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
funman300
2026-07-16 18:53:13 -07:00
parent 4e18b18122
commit 36cbf6df58
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -15,6 +15,9 @@ on:
- 'Cargo.toml'
- 'Cargo.lock'
- 'build_wasm.sh'
# The engine embeds CHANGELOG.md (What's-new card) — changelog cuts
# must redeploy the web so the card content stays fresh.
- 'CHANGELOG.md'
- 'solitaire_server/Dockerfile'
- '.gitea/workflows/docker-build.yml'
+4
View File
@@ -53,6 +53,10 @@ RUN cargo fetch --locked
# src/) because solitaire_engine embeds theme/audio/font assets at compile
# time from its own assets/ and the workspace assets/.
COPY build_wasm.sh ./
# whats_new_plugin embeds the changelog at compile time
# (include_str!("../../CHANGELOG.md")) — omit it and the engine build
# fails inside this stage while full-checkout builds stay green.
COPY CHANGELOG.md ./
COPY solitaire_core ./solitaire_core
COPY solitaire_sync ./solitaire_sync
COPY solitaire_data ./solitaire_data