ci(goreleaser): Install templ before generating templates

Adds a `go install` hook to `.goreleaser.yaml` to ensure the `templ` binary is
installed and up-to-date before `templ generate` is executed. This prevents
potential build failures in CI/CD environments where `templ` might not be
pre-installed or could be an outdated version, making the release process
more robust and self-contained.
This commit is contained in:
2025-10-06 18:20:47 +11:00
parent af968cbc9a
commit 11fccdb05f

View File

@@ -2,6 +2,7 @@ version: 2
project_name: bilinovel-downloader
before:
hooks:
- go install github.com/a-h/templ/cmd/templ@latest
- templ generate
builds:
- env: