Commit 493adcb
committed
ci(release): run templ generate before go build
The internal/web/templates/*_templ.go files are gitignored, so every
clean checkout starts without them. ci.yml already installs the templ
CLI and runs `templ generate` via its `pre-build-cmd`, but release.yml
only runs `bun run build:assets` (conditional on package.json, which
this Go-only repo does not ship). That left the release binary builds
compiling against the gitignored gap and failing with
`internal/web/templates/palette_helpers.go:9:26: undefined: PinnedEntry`
(and the other v2 view-model types declared inside .templ sources).
Add the install + generate commands to release.yml's pre-build-command
so release binaries compile, and record the drift in template.yaml
alongside the existing ci.yml entry.
Fixes the failing v1.3.0 release binary matrix; next tag will produce
artifacts + the container image.
Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>1 parent fa34dac commit 493adcb
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
| |||
0 commit comments