1package goreleaser
2
3// goreleaser configuration definition file
4#Project: {
5 @jsonschema(schema="https://json-schema.org/draft/2020-12/schema")
6 @jsonschema(id="https://github.com/goreleaser/goreleaser/v2/pkg/config/project")
7 #Project
8
9 #AUR: close({
10 name?: string
11 ids?: [...string]
12 commit_author?: #CommitAuthor
13 commit_msg_template?: string
14 description?: string
15 homepage?: string
16 license?: string
17 skip_upload?: bool | string
18 url_template?: string
19 maintainers?: [...string]
20 contributors?: [...string]
21 provides?: [...string]
22 conflicts?: [...string]
23 depends?: [...string]
24 optdepends?: [...string]
25 backup?: [...string]
26 rel?: string
27 package?: string
28 git_url?: string
29 git_ssh_command?: string
30 private_key?: string
31 goamd64?: string
32 directory?: string
33 disable?: bool | string
34 install?: string
35 })
36
37 #AURSource: close({
38 name?: string
39 ids?: [...string]
40 commit_author?: #CommitAuthor
41 commit_msg_template?: string
42 description?: string
43 homepage?: string
44 license?: string
45 skip_upload?: bool | string
46 url_template?: string
47 maintainers?: [...string]
48 contributors?: [...string]
49 arches?: [...string]
50 provides?: [...string]
51 conflicts?: [...string]
52 depends?: [...string]
53 optdepends?: [...string]
54 makedepends?: [...string]
55 backup?: [...string]
56 rel?: string
57 prepare?: string
58 build?: string
59 package?: string
60 git_url?: string
61 git_ssh_command?: string
62 private_key?: string
63 goamd64?: string
64 directory?: string
65 disable?: bool | string
66 install?: string
67 })
68
69 #Announce: close({
70 skip?: bool | string
71 twitter?: #Twitter
72 mastodon?: #Mastodon
73 reddit?: #Reddit
74 slack?: #Slack
75 discord?: #Discord
76 teams?: #Teams
77 smtp?: #SMTP
78 mattermost?: #Mattermost
79 linkedin?: #LinkedIn
80 telegram?: #Telegram
81 webhook?: #Webhook
82 opencollective?: #OpenCollective
83 bluesky?: #Bluesky
84 discourse?: #Discourse
85 })
86
87 #Archive: close({
88 id?: string
89 ids?: [...string]
90 builds_info?: #FileInfo
91 name_template?: string
92 formats?: #StringArray
93 format_overrides?: [...#FormatOverride]
94 wrap_in_directory?: bool | string
95 strip_binary_directory?: bool
96 files?: [...#File]
97 meta?: bool
98 allow_different_binary_count?: bool
99 format?: "tar" | "tgz" | "tar.gz" | "zip" | "gz" | "tar.xz" | "txz" | "binary"
100 builds?: [...string]
101 })
102
103 #Before: close({hooks?: [...string]})
104
105 #BinarySign: close({
106 id?: string
107 cmd?: string
108 args?: [...string]
109 signature?: string
110 artifacts?: "binary" | "none"
111 ids?: [...string]
112 stdin?: string
113 stdin_file?: string
114 env?: [...string]
115 certificate?: string
116 output?: bool | string
117 })
118
119 #Blob: close({
120 bucket?: string
121 provider?: string
122 region?: string
123 disable_ssl?: bool
124 directory?: string
125 kms_key?: string
126 ids?: [...string]
127 endpoint?: string
128 extra_files?: [...#ExtraFile]
129 disable?: bool | string
130 s3_force_path_style?: bool
131 acl?: string
132 cache_control?: [...string]
133 content_disposition?: string
134 include_meta?: bool
135 extra_files_only?: bool
136 })
137
138 #Bluesky: close({
139 enabled?: bool | string
140 username?: string
141 message_template?: string
142 })
143
144 #Build: close({
145 id?: string
146 goos?: [...string]
147 goarch?: [...string]
148 goamd64?: [...string]
149 go386?: [...string]
150 goarm?: [...string]
151 goarm64?: [...string]
152 gomips?: [...string]
153 goppc64?: [...string]
154 goriscv64?: [...string]
155 targets?: [...string]
156 ignore?: [...#IgnoredBuild]
157 dir?: string
158 main?: string
159 binary?: string
160 hooks?: #BuildHookConfig
161 builder?: "" | "go" | "rust" | "zig" | "bun" | "deno" | "node" | "uv" | "poetry"
162 mod_timestamp?: string
163 skip?: bool | string
164 tool?: string
165 command?: string
166 no_unique_dist_dir?: bool | string
167 no_main_check?: bool
168 buildmode?: "c-archive" | "c-shared" | "pie" | "wheel" | "sdist" | ""
169 ldflags?: #StringArray
170 tags?: #FlagArray
171 flags?: #FlagArray
172 asmflags?: #StringArray
173 gcflags?: #StringArray
174 env?: [...string]
175 overrides?: [...#BuildDetailsOverride]
176 gobinary?: string
177 })
178
179 #BuildDetailsOverride: close({
180 goos!: string
181 goarch!: string
182 goamd64?: string
183 go386?: string
184 goarm64?: string
185 goarm?: matchN(1, [string, int])
186 gomips?: string
187 goppc64?: string
188 goriscv64?: string
189 buildmode?: "c-archive" | "c-shared" | "pie" | "wheel" | "sdist" | ""
190 ldflags?: #StringArray
191 tags?: #FlagArray
192 flags?: #FlagArray
193 asmflags?: #StringArray
194 gcflags?: #StringArray
195 env?: [...string]
196 })
197
198 #BuildHookConfig: close({
199 pre?: #Hooks
200 post?: #Hooks
201 })
202
203 #Changelog: close({
204 filters?: #Filters
205 sort?: "asc" | "desc" | ""
206 disable?: bool | string
207 use?: "git" | "github" | "github-native" | "gitlab"
208 format?: string
209 groups?: [...#ChangelogGroup]
210 abbrev?: int
211 })
212
213 #ChangelogGroup: close({
214 title!: string
215 regexp?: string
216 order?: int
217 })
218
219 #Checksum: close({
220 name_template?: string
221 algorithm?: string
222 split?: bool
223 ids?: [...string]
224 disable?: bool
225 extra_files?: [...#ExtraFile]
226 })
227
228 #Chocolatey: close({
229 name?: string
230 ids?: [...string]
231 package_source_url?: string
232 owners?: string
233 title?: string
234 authors?: string
235 project_url?: string
236 url_template?: string
237 icon_url?: string
238 copyright?: string
239 license_url?: string
240 require_license_acceptance?: bool
241 project_source_url?: string
242 docs_url?: string
243 bug_tracker_url?: string
244 tags?: string
245 summary?: string
246 description?: string
247 release_notes?: string
248 dependencies?: [...#ChocolateyDependency]
249 skip_publish?: bool
250 api_key?: string
251 source_repo?: string
252 goamd64?: string
253 })
254
255 #ChocolateyDependency: close({
256 id?: string
257 version?: string
258 })
259
260 #CommitAuthor: close({
261 name?: string
262 email?: string
263 signing?: #CommitSigning
264 use_github_app_token?: bool
265 })
266
267 #CommitSigning: close({
268 enabled?: bool
269 key?: string
270 program?: string
271 format?: "openpgp" | "x509" | "ssh"
272 })
273
274 #Discord: close({
275 enabled?: bool | string
276 message_template?: string
277 author?: string
278 color?: string
279 icon_url?: string
280 })
281
282 #Discourse: close({
283 enabled?: bool | string
284 title_template?: string
285 message_template?: string
286 server?: string
287 category_id?: int
288 username?: string
289 })
290
291 #Docker: close({
292 id?: string
293 ids?: [...string]
294 goos?: string
295 goarch?: string
296 goarm?: matchN(1, [string, int])
297 goamd64?: string
298 dockerfile?: string
299 image_templates?: [...string]
300 skip_push?: bool | string
301 extra_files?: [...string]
302 build_flag_templates?: [...string]
303 push_flags?: [...string]
304 use?: "docker" | "buildx"
305 retry?: #Retry
306 })
307
308 #DockerDigest: close({
309 disable?: bool | string
310 name_template?: string
311 })
312
313 #DockerManifest: close({
314 id?: string
315 name_template?: string
316 skip_push?: bool | string
317 image_templates?: [...string]
318 create_flags?: [...string]
319 push_flags?: [...string]
320 use?: string
321 retry?: #Retry
322 })
323
324 #DockerV2: close({
325 id?: string
326 ids?: [...string]
327 dockerfile?: string
328 images?: [...string]
329 tags?: [...string]
330 labels?: [string]: string
331 annotations?: [string]: string
332 extra_files?: [...string]
333 platforms?: [...string]
334 build_args?: [string]: string
335 flags?: [...string]
336 disable?: bool | string
337 sbom?: bool | string
338 hooks?: #BuildHookConfig
339 retry?: #Retry
340 })
341
342 #EnvFiles: close({
343 github_token?: string
344 gitlab_token?: string
345 gitea_token?: string
346 })
347
348 #ExtraFile: close({
349 glob?: string
350 name_template?: string
351 })
352
353 #File: matchN(1, [string, _#defs."/$defs/File/oneOf/1"])
354
355 #FileInfo: {
356 @jsonschema(id="https://github.com/goreleaser/goreleaser/v2/pkg/config/file-info")
357 _#defs."/$defs/FileInfo/$defs/FileInfo"
358 }
359
360 #Filters: close({
361 include?: [...string]
362 exclude?: [...string]
363 })
364
365 #FlagArray: matchN(1, [string, [...string]])
366
367 #Flatpak: close({
368 id?: string
369 ids?: [...string]
370 name_template?: string
371 app_id!: string
372 runtime!: string
373 runtime_version!: string
374 sdk!: string
375 command?: string
376 finish_args?: [...string]
377 disable?: bool | string
378 })
379
380 #FormatOverride: close({
381 goos?: string
382 formats?: #StringArray
383 format?: "tar" | "tgz" | "tar.gz" | "zip" | "gz" | "tar.xz" | "txz" | "binary" | "none"
384 })
385
386 #Git: close({
387 tag_sort?: "-version:refname" | "-version:creatordate"
388 prerelease_suffix?: string
389 ignore_tags?: [...string]
390 })
391
392 #GitHubURLs: close({
393 api?: string
394 upload?: string
395 download?: string
396 skip_tls_verify?: bool
397 })
398
399 #GitLabURLs: close({
400 api?: string
401 download?: string
402 skip_tls_verify?: bool
403 use_package_registry?: bool
404 use_job_token?: bool
405 })
406
407 #GitRepoRef: close({
408 url?: string
409 ssh_command?: string
410 private_key?: string
411 })
412
413 #GiteaURLs: close({
414 api?: string
415 download?: string
416 skip_tls_verify?: bool
417 })
418
419 #GoMod: close({
420 proxy?: bool
421 env?: [...string]
422 gobinary?: string
423 mod?: string
424 dir?: string
425 })
426
427 #Homebrew: close({
428 name?: string
429 repository?: #RepoRef
430 commit_author?: #CommitAuthor
431 commit_msg_template?: string
432 directory?: string
433 caveats?: string
434 install?: string
435 extra_install?: string
436 post_install?: string
437 dependencies?: [...#HomebrewDependency]
438 test?: string
439 conflicts?: [...string]
440 description?: string
441 homepage?: string
442 license?: string
443 skip_upload?: bool | string
444 download_strategy?: string
445 url_template?: string
446 url_headers?: [...string]
447 custom_require?: string
448 custom_block?: string
449 ids?: [...string]
450 goarm?: matchN(1, [string, int])
451 goamd64?: string
452 service?: string
453 })
454
455 #HomebrewCask: close({
456 name?: string
457 repository?: #RepoRef
458 commit_author?: #CommitAuthor
459 commit_msg_template?: string
460 directory?: string
461 caveats?: string
462 description?: string
463 homepage?: string
464 skip_upload?: bool | string
465 custom_block?: string
466 ids?: [...string]
467 service?: string
468 binaries?: [...string]
469 manpages?: [...string]
470 url?: #HomebrewCaskURL
471 completions?: #HomebrewCaskCompletions
472 dependencies?: [...#HomebrewCaskDependency]
473 conflicts?: [...#HomebrewCaskConflict]
474 hooks?: #HomebrewCaskHooks
475 uninstall?: #HomebrewCaskUninstall
476 zap?: #HomebrewCaskUninstall
477 generate_completions_from_executable?: #HomebrewCaskGeneratedCompletions
478 license?: string
479 manpage?: string
480 binary?: string
481 })
482
483 #HomebrewCaskCompletions: close({
484 bash?: string
485 zsh?: string
486 fish?: string
487 })
488
489 #HomebrewCaskConflict: close({
490 cask?: string
491 formula?: string
492 })
493
494 #HomebrewCaskDependency: close({
495 cask?: string
496 formula?: string
497 })
498
499 #HomebrewCaskGeneratedCompletions: close({
500 executable?: string
501 args?: [...string]
502 base_name?: string
503 shell_parameter_format?: string
504 shells?: [...string]
505 })
506
507 #HomebrewCaskHook: close({
508 install?: string
509 uninstall?: string
510 })
511
512 #HomebrewCaskHooks: close({
513 pre?: #HomebrewCaskHook
514 post?: #HomebrewCaskHook
515 })
516
517 #HomebrewCaskURL: close({
518 template?: string
519 verified?: string
520 using?: string
521 cookies?: [string]: string
522 referer?: string
523 headers?: [...string]
524 user_agent?: string
525 data?: [string]: string
526 })
527
528 #HomebrewCaskUninstall: close({
529 launchctl?: [...string]
530 quit?: [...string]
531 login_item?: [...string]
532 delete?: [...string]
533 trash?: [...string]
534 })
535
536 #HomebrewDependency: matchN(1, [string, _#defs."/$defs/HomebrewDependency/oneOf/1"])
537
538 #Hooks: matchN(1, [string, [..._#defs."/$defs/Hooks/oneOf/1/items"]])
539
540 #IgnoredBuild: close({
541 goos?: string
542 goarch?: string
543 goamd64?: string
544 go386?: string
545 goarm?: matchN(1, [string, int])
546 goarm64?: string
547 gomips?: string
548 goppc64?: string
549 goriscv64?: string
550 })
551
552 #Ko: close({
553 id?: string
554 build?: string
555 main?: string
556 working_dir?: string
557 base_image?: string
558 labels?: [string]: string
559 annotations?: [string]: string
560 user?: string
561 repositories?: [...string]
562 platforms?: [...string]
563 tags?: [...string]
564 creation_time?: string
565 ko_data_creation_time?: string
566 sbom?: "spdx" | "none"
567 sbom_directory?: string
568 ldflags?: [...string]
569 flags?: [...string]
570 env?: [...string]
571 bare?: bool
572 preserve_import_paths?: bool
573 base_import_paths?: bool
574 local_domain?: string
575 disable?: bool | string
576 repository?: string
577 })
578
579 #Krew: close({
580 ids?: [...string]
581 name?: string
582 repository?: #RepoRef
583 commit_author?: #CommitAuthor
584 commit_msg_template?: string
585 caveats?: string
586 short_description?: string
587 description?: string
588 homepage?: string
589 url_template?: string
590 goarm?: matchN(1, [string, int])
591 goamd64?: string
592 skip_upload?: bool | string
593 })
594
595 #Libdirs: close({
596 header?: string
597 carchive?: string
598 cshared?: string
599 })
600
601 #LinkedIn: close({
602 enabled?: bool | string
603 message_template?: string
604 })
605
606 #MCP: close({
607 github?: #MCPDetails
608 name!: string
609 title!: string
610 description?: string
611 homepage?: string
612 packages?: [...#MCPPackage]
613 transports?: [...#MCPTransport]
614 disable?: bool | string
615 repository?: #MCPRepository
616 auth!: #MCPAuth
617 })
618
619 #MCPAuth: close({
620 type!: "none" | "github" | "github-oidc"
621 token?: string
622 })
623
624 #MCPDetails: close({
625 name!: string
626 title!: string
627 description?: string
628 homepage?: string
629 packages?: [...#MCPPackage]
630 transports?: [...#MCPTransport]
631 disable?: bool | string
632 repository?: #MCPRepository
633 auth!: #MCPAuth
634 })
635
636 #MCPPackage: close({
637 registry_type!: "oci" | "npm" | "pypi" | "nuget" | "mcpb"
638 identifier!: string
639 transport!: #MCPTransport
640 })
641
642 #MCPRepository: close({
643 url?: string
644 source?: "github" | "gitlab" | "gitea"
645 id?: string
646 subfolder?: string
647 })
648
649 #MCPTransport: close({type?: "stdio" | "streamable-http" | "sse"})
650
651 #MacOSNotarize: close({
652 issuer_id!: string
653 key!: string
654 key_id!: string
655 timeout?: string
656 wait?: bool
657 })
658
659 #MacOSSign: close({
660 certificate!: string
661 password!: string
662 entitlements?: string
663 })
664
665 #MacOSSignNotarize: close({
666 ids?: [...string]
667 enabled?: bool | string
668 sign!: #MacOSSign
669 notarize!: #MacOSNotarize
670 })
671
672 #Makeself: close({
673 id?: string
674 filename?: string
675 script!: string
676 compression?: "gzip" | "bzip2" | "xz" | "lzo" | "compress" | "none"
677 extra_args?: [...string]
678 files?: [...#MakeselfFile]
679 disable?: bool | string
680 ids?: [...string]
681 goos?: [...string]
682 goarch?: [...string]
683 name?: string
684 description?: string
685 maintainer?: string
686 keywords?: [...string]
687 homepage?: string
688 license?: string
689 })
690
691 #MakeselfFile: close({
692 src?: string
693 dst?: string
694 strip_parent?: bool
695 })
696
697 #Mastodon: close({
698 enabled?: bool | string
699 message_template?: string
700 server!: string
701 })
702
703 #Mattermost: close({
704 enabled?: bool | string
705 message_template?: string
706 title_template?: string
707 color?: string
708 channel?: string
709 username?: string
710 icon_emoji?: string
711 icon_url?: string
712 })
713
714 #Milestone: close({
715 repo?: #Repo
716 close?: bool
717 fail_on_error?: bool
718 name_template?: string
719 })
720
721 #NFPM: close({
722 file_name_template?: string
723 package_name?: string
724 epoch?: string
725 release?: string
726 prerelease?: string
727 version_metadata?: string
728 dependencies?: [...string]
729 recommends?: [...string]
730 suggests?: [...string]
731 conflicts?: [...string]
732 umask?: matchN(1, [string, int])
733 replaces?: [...string]
734 provides?: [...string]
735 contents?: [...#NFPMContent]
736 scripts?: #NFPMScripts
737 rpm?: #NFPMRPM
738 deb?: #NFPMDeb
739 apk?: #NFPMAPK
740 archlinux?: #NFPMArchLinux
741 ipk?: #NFPMIPK
742 msix?: #NFPMMSIX
743 overrides?: [string]: #NFPMOverridables
744 id?: string
745 ids?: [...string]
746 formats?: [..."apk" | "deb" | "rpm" | "termux.deb" | "archlinux" | "ipk" | "msix"]
747 section?: string
748 priority?: string
749 vendor?: string
750 homepage?: string
751 maintainer?: string
752 description?: string
753 license?: string
754 bindir?: string
755 libdirs?: #Libdirs
756 changelog?: string
757 mtime?: string
758 meta?: bool
759 goamd64?: [...string]
760 builds?: [...string]
761 })
762
763 #NFPMAPK: close({
764 scripts?: #NFPMAPKScripts
765 signature?: #NFPMAPKSignature
766 })
767
768 #NFPMAPKScripts: close({
769 preupgrade?: string
770 postupgrade?: string
771 })
772
773 #NFPMAPKSignature: close({
774 key_file?: string
775 key_name?: string
776 })
777
778 #NFPMArchLinux: close({
779 pkgbase?: string
780 packager?: string
781 scripts?: #NFPMArchLinuxScripts
782 })
783
784 #NFPMArchLinuxScripts: close({
785 preupgrade?: string
786 postupgrade?: string
787 })
788
789 #NFPMContent: close({
790 src?: string
791 dst!: string
792 type?: "symlink" | "ghost" | "config" | "config|noreplace" | "dir" | "tree" | ""
793 packager?: string
794 file_info?: #FileInfo
795 expand?: bool
796 })
797
798 #NFPMDeb: close({
799 scripts?: #NFPMDebScripts
800 triggers?: #NFPMDebTriggers
801 breaks?: [...string]
802 signature?: #NFPMDebSignature
803 lintian_overrides?: [...string]
804 compression?: "gzip" | "xz" | "zstd" | "none"
805 fields?: [string]: string
806 predepends?: [...string]
807 })
808
809 #NFPMDebScripts: close({
810 rules?: string
811 templates?: string
812 config?: string
813 })
814
815 #NFPMDebSignature: close({
816 key_file?: string
817 type?: string
818 })
819
820 #NFPMDebTriggers: close({
821 interest?: [...string]
822 interest_await?: [...string]
823 interest_noawait?: [...string]
824 activate?: [...string]
825 activate_await?: [...string]
826 activate_noawait?: [...string]
827 })
828
829 #NFPMIPK: close({
830 abi_version?: string
831 alternatives?: [...#NFPMIPKAlternative]
832 auto_installed?: bool
833 essential?: bool
834 predepends?: [...string]
835 tags?: [...string]
836 fields?: [string]: string
837 })
838
839 #NFPMIPKAlternative: close({
840 priority?: int
841 target?: string
842 link_name?: string
843 })
844
845 #NFPMMSIX: close({
846 arch?: string
847 publisher?: string
848 identity?: #NFPMMSIXIdentity
849 properties?: #NFPMMSIXProperties
850 applications?: [...#NFPMMSIXApplication]
851 dependencies?: #NFPMMSIXDependencies
852 capabilities?: #NFPMMSIXCapabilities
853 signature?: #NFPMMSIXSignature
854 })
855
856 #NFPMMSIXApplication: close({
857 id!: string
858 executable!: string
859 entry_point?: string
860 visual_elements?: #NFPMMSIXVisualElements
861 })
862
863 #NFPMMSIXCapabilities: close({
864 capabilities?: [...string]
865 device_capabilities?: [...string]
866 restricted?: [...string]
867 })
868
869 #NFPMMSIXDependencies: close({target_device_families?: [...#NFPMMSIXTargetDeviceFamily]})
870
871 #NFPMMSIXIdentity: close({resource_id?: string})
872
873 #NFPMMSIXProperties: close({
874 display_name?: string
875 publisher_display_name?: string
876 logo?: string
877 })
878
879 #NFPMMSIXSignature: close({pfx_file?: string})
880
881 #NFPMMSIXTargetDeviceFamily: close({
882 name!: string
883 min_version!: string
884 max_version_tested!: string
885 })
886
887 #NFPMMSIXVisualElements: close({
888 display_name?: string
889 description?: string
890 background_color?: string
891 square150x150_logo?: string
892 square44x44_logo?: string
893 })
894
895 #NFPMOverridables: close({
896 file_name_template?: string
897 package_name?: string
898 epoch?: string
899 release?: string
900 prerelease?: string
901 version_metadata?: string
902 dependencies?: [...string]
903 recommends?: [...string]
904 suggests?: [...string]
905 conflicts?: [...string]
906 umask?: matchN(1, [string, int])
907 replaces?: [...string]
908 provides?: [...string]
909 contents?: [...#NFPMContent]
910 scripts?: #NFPMScripts
911 rpm?: #NFPMRPM
912 deb?: #NFPMDeb
913 apk?: #NFPMAPK
914 archlinux?: #NFPMArchLinux
915 ipk?: #NFPMIPK
916 msix?: #NFPMMSIX
917 })
918
919 #NFPMRPM: close({
920 summary?: string
921 group?: string
922 compression?: string
923 signature?: #NFPMRPMSignature
924 scripts?: #NFPMRPMScripts
925 prefixes?: [...string]
926 packager?: string
927 buildhost?: string
928 })
929
930 #NFPMRPMScripts: close({
931 pretrans?: string
932 posttrans?: string
933 })
934
935 #NFPMRPMSignature: close({key_file?: string})
936
937 #NFPMScripts: close({
938 preinstall?: string
939 postinstall?: string
940 preremove?: string
941 postremove?: string
942 })
943
944 #Nix: close({
945 name?: string
946 path?: string
947 repository?: #RepoRef
948 commit_author?: #CommitAuthor
949 commit_msg_template?: string
950 ids?: [...string]
951 goamd64?: string
952 skip_upload?: bool | string
953 url_template?: string
954 install?: string
955 extra_install?: string
956 post_install?: string
957 description?: string
958 homepage?: string
959 license?: string
960 dependencies?: [...#NixDependency]
961 formatter?: "alejandra" | "nixfmt"
962 main_program?: string
963 })
964
965 #NixDependency: matchN(1, [string, _#defs."/$defs/NixDependency/oneOf/1"])
966
967 #Notarize: close({macos!: [...#MacOSSignNotarize]})
968
969 #OpenCollective: close({
970 enabled?: bool | string
971 slug?: string
972 title_template?: string
973 message_template?: string
974 })
975
976 #Project: close({
977 version?: >=2 & <=2 & int
978 pro?: bool
979 project_name?: string
980 env?: [...string]
981 release?: #Release
982 milestones?: [...#Milestone]
983 homebrew_casks?: [...#HomebrewCask]
984 nix?: [...#Nix]
985 winget?: [...#Winget]
986 aurs?: [...#AUR]
987 aur_sources?: [...#AURSource]
988 krews?: [...#Krew]
989 kos?: [...#Ko]
990 scoops?: [...#Scoop]
991 builds?: [...#Build]
992 archives?: [...#Archive]
993 nfpms?: [...#NFPM]
994 srpm?: #SRPM
995 snapcrafts?: [...#Snapcraft]
996 flatpak?: [...#Flatpak]
997 snapshot?: #Snapshot
998 checksum?: #Checksum
999 dockers_v2?: [...#DockerV2]
1000 docker_digest?: #DockerDigest
1001 artifactories?: [...#Upload]
1002 uploads?: [...#Upload]
1003 blobs?: [...#Blob]
1004 publishers?: [...#Publisher]
1005 changelog?: #Changelog
1006 dist?: string
1007 signs?: [...#Sign]
1008 notarize?: #Notarize
1009 docker_signs?: [...#Sign]
1010 binary_signs?: [...#BinarySign]
1011 env_files?: #EnvFiles
1012 before?: #Before
1013 source?: #Source
1014 gomod?: #GoMod
1015 announce?: #Announce
1016 sboms?: [...#SBOM]
1017 chocolateys?: [...#Chocolatey]
1018 git?: #Git
1019 report_sizes?: bool
1020 metadata?: #ProjectMetadata
1021 makeselfs?: [...#Makeself]
1022 universal_binaries?: [...#UniversalBinary]
1023 upx?: [...#UPX]
1024 mcp?: #MCP
1025 retry?: #Retry
1026 force_token?: "github" | "gitlab" | "gitea" | ""
1027 github_urls?: #GitHubURLs
1028 gitlab_urls?: #GitLabURLs
1029 gitea_urls?: #GiteaURLs
1030 brews?: [...#Homebrew]
1031 dockers?: [...#Docker]
1032 docker_manifests?: [...#DockerManifest]
1033 })
1034
1035 #ProjectMetadata: close({mod_timestamp?: string})
1036
1037 #Publisher: close({
1038 name?: string
1039 ids?: [...string]
1040 checksum?: bool
1041 signature?: bool
1042 meta?: bool
1043 dir?: string
1044 cmd?: string
1045 env?: [...string]
1046 extra_files?: [...#ExtraFile]
1047 disable?: bool | string
1048 })
1049
1050 #PullRequest: close({
1051 enabled?: bool
1052 base?: #PullRequestBase
1053 draft?: bool
1054 })
1055
1056 #PullRequestBase: matchN(1, [string, _#defs."/$defs/PullRequestBase/oneOf/1"])
1057
1058 #Reddit: close({
1059 enabled?: bool | string
1060 application_id?: string
1061 username?: string
1062 title_template?: string
1063 url_template?: string
1064 sub?: string
1065 })
1066
1067 #Release: close({
1068 github?: #Repo
1069 gitlab?: #Repo
1070 gitea?: #Repo
1071 draft?: bool
1072 replace_existing_draft?: bool
1073 use_existing_draft?: bool
1074 target_commitish?: string
1075 disable?: bool | string
1076 skip_upload?: bool | string
1077 prerelease?: string
1078 make_latest?: bool | string
1079 name_template?: string
1080 ids?: [...string]
1081 extra_files?: [...#ExtraFile]
1082 discussion_category_name?: string
1083 header?: string
1084 footer?: string
1085 mode?: "keep-existing" | "append" | "prepend" | "replace"
1086 replace_existing_artifacts?: bool
1087 include_meta?: bool
1088 })
1089
1090 #Repo: close({
1091 owner?: string
1092 name?: string
1093 token?: string
1094 })
1095
1096 #RepoRef: close({
1097 owner?: string
1098 name?: string
1099 token?: string
1100 branch?: string
1101 git?: #GitRepoRef
1102 pull_request?: #PullRequest
1103 })
1104
1105 #Retry: close({
1106 attempts?: int
1107 delay?: int
1108 max_delay?: int
1109 })
1110
1111 #SBOM: close({
1112 id?: string
1113 cmd?: string
1114 env?: [...string]
1115 args?: [...string]
1116 documents?: [...string]
1117 artifacts?: "source" | "package" | "archive" | "binary" | "any" | "none"
1118 ids?: [...string]
1119 disable?: bool | string
1120 })
1121
1122 #SMTP: close({
1123 enabled?: bool | string
1124 host?: string
1125 port?: int
1126 username?: string
1127 from?: string
1128 to?: [...string]
1129 subject_template?: string
1130 body_template?: string
1131 insecure_skip_verify?: bool
1132 })
1133
1134 #SRPM: close({
1135 summary?: string
1136 group?: string
1137 compression?: string
1138 signature?: #NFPMRPMSignature
1139 scripts?: #NFPMRPMScripts
1140 prefixes?: [...string]
1141 packager?: string
1142 buildhost?: string
1143 enabled?: bool
1144 package_name?: string
1145 epoch?: string
1146 import_path?: string
1147 section?: string
1148 maintainer?: string
1149 file_name_template?: string
1150 spec_file?: string
1151 license?: string
1152 license_file_name?: string
1153 vendor?: string
1154 url?: string
1155 description?: string
1156 bins?: [string]: string
1157 docs?: [...string]
1158 contents?: [...#NFPMContent]
1159 })
1160
1161 #Scoop: close({
1162 name?: string
1163 ids?: [...string]
1164 repository?: #RepoRef
1165 directory?: string
1166 commit_author?: #CommitAuthor
1167 commit_msg_template?: string
1168 homepage?: string
1169 description?: string
1170 license?: string
1171 url_template?: string
1172 persist?: [...string]
1173 skip_upload?: bool | string
1174 pre_install?: [...string]
1175 post_install?: [...string]
1176 depends?: [...string]
1177 shortcuts?: [...[...string]]
1178 goamd64?: string
1179 })
1180
1181 #Sign: close({
1182 id?: string
1183 cmd?: string
1184 args?: [...string]
1185 signature?: string
1186 artifacts?: "all" | "manifests" | "images" | "checksum" | "source" | "package" | "archive" | "binary" | "sbom"
1187 ids?: [...string]
1188 stdin?: string
1189 stdin_file?: string
1190 env?: [...string]
1191 certificate?: string
1192 output?: bool | string
1193 })
1194
1195 #Slack: close({
1196 enabled?: bool | string
1197 message_template?: string
1198 channel?: string
1199 username?: string
1200 icon_emoji?: string
1201 icon_url?: string
1202 blocks?: [...#SlackBlock]
1203 attachments?: [...#SlackAttachment]
1204 })
1205
1206 #SlackAttachment: close({Internal!: _})
1207
1208 #SlackBlock: close({Internal!: _})
1209
1210 #Snapcraft: close({
1211 name_template?: string
1212 publish?: bool
1213 id?: string
1214 ids?: [...string]
1215 name?: string
1216 title?: string
1217 summary!: string
1218 description!: string
1219 icon?: string
1220 base?: string
1221 license?: string
1222 grade?: "stable" | "devel"
1223 channel_templates?: [...string]
1224 confinement?: "strict" | "classic" | "devmode"
1225 assumes?: [...string]
1226 layout?: [string]: #SnapcraftLayoutMetadata
1227 apps?: [string]: #SnapcraftAppMetadata
1228 hooks?: {...}
1229 plugs?: {...}
1230 disable?: bool | string
1231 extra_files?: [...#SnapcraftExtraFiles]
1232 builds?: [...string]
1233 })
1234
1235 #SnapcraftAppMetadata: close({
1236 command!: string
1237 args?: string
1238 adapter?: string
1239 after?: [...string]
1240 aliases?: [...string]
1241 autostart?: string
1242 before?: [...string]
1243 bus_name?: string
1244 command_chain?: [...string]
1245 common_id?: string
1246 completer?: string
1247 daemon?: string
1248 desktop?: string
1249 environment?: {...}
1250 extensions?: [...string]
1251 install_mode?: string
1252 passthrough?: {...}
1253 plugs?: [...string]
1254 post_stop_command?: string
1255 refresh_mode?: string
1256 reload_command?: string
1257 restart_condition?: string
1258 restart_delay?: string
1259 slots?: [...string]
1260 sockets?: {...}
1261 start_timeout?: string
1262 stop_command?: string
1263 stop_mode?: string
1264 stop_timeout?: string
1265 timer?: string
1266 watchdog_timeout?: string
1267 })
1268
1269 #SnapcraftExtraFiles: close({
1270 source!: string
1271 destination?: string
1272 mode?: int
1273 })
1274
1275 #SnapcraftLayoutMetadata: close({
1276 symlink?: string
1277 bind?: string
1278 bind_file?: string
1279 type?: string
1280 })
1281
1282 #Snapshot: close({
1283 name_template?: string
1284 version_template?: string
1285 })
1286
1287 #Source: close({
1288 name_template?: string
1289 format?: "tar" | "tgz" | "tar.gz" | "zip"
1290 enabled?: bool
1291 prefix_template?: string
1292 files?: [...#File]
1293 })
1294
1295 #StringArray: matchN(1, [string, [...string]])
1296
1297 #Teams: close({
1298 enabled?: bool | string
1299 title_template?: string
1300 message_template?: string
1301 color?: string
1302 icon_url?: string
1303 })
1304
1305 #Telegram: close({
1306 enabled?: bool | string
1307 message_template?: string
1308 chat_id?: matchN(1, [string, int])
1309 parse_mode?: "MarkdownV2" | "HTML"
1310 message_thread_id?: matchN(1, [string, int])
1311 })
1312
1313 #Twitter: close({
1314 enabled?: bool | string
1315 message_template?: string
1316 })
1317
1318 #UPX: close({
1319 enabled?: bool | string
1320 ids?: [...string]
1321 goos?: [...string]
1322 goarch?: [...string]
1323 goarm?: [...string]
1324 goamd64?: [...string]
1325 binary?: string
1326 compress?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "best" | ""
1327 lzma?: bool
1328 brute?: bool
1329 })
1330
1331 #UniversalBinary: close({
1332 id?: string
1333 ids?: [...string]
1334 name_template?: string
1335 replace?: bool
1336 hooks?: #BuildHookConfig
1337 mod_timestamp?: string
1338 })
1339
1340 #Upload: close({
1341 name?: string
1342 ids?: [...string]
1343 exts?: [...string]
1344 target?: string
1345 username?: string
1346 mode?: "binary" | "archive"
1347 method?: string
1348 checksum_header?: string
1349 client_x509_cert?: string
1350 client_x509_key?: string
1351 trusted_certificates?: string
1352 checksum?: bool
1353 signature?: bool
1354 meta?: bool
1355 custom_artifact_name?: bool
1356 custom_headers?: [string]: string
1357 extra_files?: [...#ExtraFile]
1358 extra_files_only?: bool
1359 skip?: bool | string
1360 password?: string
1361 })
1362
1363 #Webhook: close({
1364 enabled?: bool | string
1365 skip_tls_verify?: bool
1366 message_template?: string
1367 endpoint_url?: string
1368 headers?: [string]: string
1369 content_type?: string
1370 expected_status_codes?: [...int]
1371 })
1372
1373 #Winget: close({
1374 name?: string
1375 package_name?: string
1376 package_identifier?: string
1377 default_locale?: string
1378 publisher!: string
1379 publisher_url?: string
1380 publisher_support_url?: string
1381 privacy_url?: string
1382 copyright?: string
1383 copyright_url?: string
1384 author?: string
1385 path?: string
1386 repository!: #RepoRef
1387 commit_author?: #CommitAuthor
1388 commit_msg_template?: string
1389 ids?: [...string]
1390 goamd64?: string
1391 skip_upload?: bool | string
1392 url_template?: string
1393 short_description!: string
1394 description?: string
1395 homepage?: string
1396 license!: string
1397 license_url?: string
1398 release_notes?: string
1399 release_notes_url?: string
1400 installation_notes?: string
1401 tags?: [...string]
1402 dependencies?: [...#WingetDependency]
1403 })
1404
1405 #WingetDependency: close({
1406 package_identifier!: string
1407 minimum_version?: string
1408 })
1409
1410 _#defs: "/$defs/File/oneOf/1": {
1411 @jsonschema(id="https://github.com/goreleaser/goreleaser/v2/pkg/config/file-alias")
1412 close({
1413 src?: string
1414 dst?: string
1415 strip_parent?: bool
1416 info?: _#defs."/$defs/File/oneOf/1/$defs/FileInfo"
1417 })
1418 }
1419
1420 _#defs: "/$defs/File/oneOf/1/$defs/FileInfo": close({
1421 owner?: string
1422 group?: string
1423 mode?: int
1424 mtime?: string
1425 })
1426
1427 _#defs: "/$defs/FileInfo/$defs/FileInfo": close({
1428 owner?: string
1429 group?: string
1430 mode?: int
1431 mtime?: string
1432 })
1433
1434 _#defs: "/$defs/HomebrewDependency/oneOf/1": {
1435 @jsonschema(id="https://github.com/goreleaser/goreleaser/v2/pkg/config/homebrew-dependency-alias")
1436 close({
1437 name?: string
1438 type?: string
1439 version?: string
1440 os?: "mac" | "linux"
1441 })
1442 }
1443
1444 _#defs: "/$defs/Hooks/oneOf/1/items": {
1445 @jsonschema(id="https://github.com/goreleaser/goreleaser/v2/pkg/config/hook")
1446 matchN(1, [string, _#defs."/$defs/Hooks/oneOf/1/items/oneOf/1"])
1447 }
1448
1449 _#defs: "/$defs/Hooks/oneOf/1/items/oneOf/1": {
1450 @jsonschema(id="https://github.com/goreleaser/goreleaser/v2/pkg/config/hook-alias")
1451 close({
1452 dir?: string
1453 cmd?: string
1454 env?: [...string]
1455 output?: bool
1456 })
1457 }
1458
1459 _#defs: "/$defs/NixDependency/oneOf/1": {
1460 @jsonschema(id="https://github.com/goreleaser/goreleaser/v2/pkg/config/nix-dependency-alias")
1461 close({
1462 name!: string
1463 os?: "linux" | "darwin"
1464 })
1465 }
1466
1467 _#defs: "/$defs/PullRequestBase/oneOf/1": {
1468 @jsonschema(id="https://github.com/goreleaser/goreleaser/v2/pkg/config/pull-request-base-alias")
1469 close({
1470 owner?: string
1471 name?: string
1472 branch?: string
1473 })
1474 }
1475}