Skip to content

Commit 1c514fc

Browse files
Publish bundle jsonschema.json as a release asset (#5083)
## Summary - Upload `bundle/schema/jsonschema.json` (the output of `databricks bundle schema`) as a GitHub release asset via goreleaser's `release.extra_files`. - Motivation: we want to register the bundle JSON schema in [SchemaStore](https://www.schemastore.org/) pointing at a stable "latest" release URL (`https://github.com/databricks/cli/releases/latest/download/jsonschema.json`). Publishing as a release asset gives us that URL so SchemaStore doesn't need to be updated on every CLI release. ## Test plan - [x] Verify goreleaser config parses (`goreleaser check` if available locally, otherwise rely on the release workflow). ``` % goreleaser check • checking path=.goreleaser.yaml • 1 configuration file(s) validated • thanks for using GoReleaser! ``` - [ ] After the next tagged release, confirm `jsonschema.json` appears as a release asset and that `https://github.com/databricks/cli/releases/latest/download/jsonschema.json` resolves to it. This pull request and its description were written by Isaac.
1 parent d93ac04 commit 1c514fc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.goreleaser.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,7 @@ changelog:
6666
exclude:
6767
- '^docs:'
6868
- '^test:'
69+
70+
release:
71+
extra_files:
72+
- glob: bundle/schema/jsonschema.json

0 commit comments

Comments
 (0)