Skip to content

ci: generate OpenAPI spec before release build#91

Merged
0ceanSlim merged 1 commit into
mainfrom
fix-release-openapi-embed
May 21, 2026
Merged

ci: generate OpenAPI spec before release build#91
0ceanSlim merged 1 commit into
mainfrom
fix-release-openapi-embed

Conversation

@0ceanSlim

Copy link
Copy Markdown
Owner

The release matrix went straight to go build, but main.go embeds docs/openapi/swagger.json via //go:embed and that file is gitignored — it's produced by swag init. The Docker build already does this; the native release build did not, so it failed with "pattern docs/openapi/swagger.json: no matching files found". Add a generate step (pinned [email protected], matching the Dockerfile) before both the Unix and Windows build steps.

The release matrix went straight to `go build`, but main.go embeds
docs/openapi/swagger.json via //go:embed and that file is gitignored —
it's produced by `swag init`. The Docker build already does this; the
native release build did not, so it failed with "pattern
docs/openapi/swagger.json: no matching files found". Add a generate
step (pinned [email protected], matching the Dockerfile) before both the
Unix and Windows build steps.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@0ceanSlim 0ceanSlim merged commit 3d0d882 into main May 21, 2026
1 check passed
@0ceanSlim 0ceanSlim deleted the fix-release-openapi-embed branch May 21, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant