diff --git a/www/docs/static/schema-pro.json b/www/docs/static/schema-pro.json index b36d912cb7d..9b09a75f9a7 100644 --- a/www/docs/static/schema-pro.json +++ b/www/docs/static/schema-pro.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/goreleaser/goreleaser/pkg/config/project", "$ref": "#/$defs/Project", "$defs": { @@ -96,10 +96,7 @@ "After": { "properties": { "hooks": { - "items": { - "$ref": "#/$defs/Hook" - }, - "type": "array" + "$ref": "#/$defs/Hooks" } }, "additionalProperties": false, @@ -196,6 +193,21 @@ }, "allow_different_binary_count": { "type": "boolean" + }, + "hooks": { + "$ref": "#/$defs/ArchiveHooks" + } + }, + "additionalProperties": false, + "type": "object" + }, + "ArchiveHooks": { + "properties": { + "before": { + "$ref": "#/$defs/Hooks" + }, + "after": { + "$ref": "#/$defs/Hooks" } }, "additionalProperties": false, @@ -204,10 +216,7 @@ "Before": { "properties": { "hooks": { - "items": { - "$ref": "#/$defs/Hook" - }, - "type": "array" + "$ref": "#/$defs/Hooks" } }, "additionalProperties": false, @@ -411,16 +420,10 @@ "BuildHookConfig": { "properties": { "pre": { - "items": { - "$ref": "#/$defs/Hook" - }, - "type": "array" + "$ref": "#/$defs/Hooks" }, "post": { - "items": { - "$ref": "#/$defs/Hook" - }, - "type": "array" + "$ref": "#/$defs/Hooks" } }, "additionalProperties": false, @@ -554,6 +557,12 @@ "group" ] }, + "Contents": { + "items": { + "$ref": "#/$defs/Content" + }, + "type": "array" + }, "Discord": { "properties": { "enabled": { @@ -704,7 +713,7 @@ "type": "string" }, { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/goreleaser/goreleaser/pkg/config/t", "$defs": { "FileInfo": { @@ -802,6 +811,9 @@ }, "secret_name": { "type": "string" + }, + "skip": { + "type": "string" } }, "additionalProperties": false, @@ -1014,7 +1026,7 @@ "type": "string" }, { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/goreleaser/goreleaser/pkg/config/homebrew-dependency", "properties": { "name": { @@ -1035,7 +1047,7 @@ "type": "string" }, { - "$schema": "http://json-schema.org/draft/2020-12/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/goreleaser/goreleaser/pkg/config/t", "properties": { "dir": { @@ -1059,6 +1071,12 @@ } ] }, + "Hooks": { + "items": { + "$ref": "#/$defs/Hook" + }, + "type": "array" + }, "IgnoredBuild": { "properties": { "goos": { @@ -1297,10 +1315,7 @@ "type": "array" }, "contents": { - "items": { - "$ref": "#/$defs/Content" - }, - "type": "array" + "$ref": "#/$defs/Contents" }, "scripts": { "$ref": "#/$defs/NFPMScripts" @@ -1556,10 +1571,7 @@ "type": "array" }, "contents": { - "items": { - "$ref": "#/$defs/Content" - }, - "type": "array" + "$ref": "#/$defs/Contents" }, "scripts": { "$ref": "#/$defs/NFPMScripts" @@ -2679,4 +2691,4 @@ } }, "description": "goreleaser configuration definition file" - } + } \ No newline at end of file