1- # This is an example goreleaser.yaml file with some sane defaults.
2- # Make sure to check the documentation at http://goreleaser.com
1+ # ###############################################################################
2+ project_name : deploywp
3+
4+
5+ # ###############################################################################
36before :
47 hooks :
5- # you may remove this if you don't use vgo
68 - go mod download
7- # you may remove this if you don't need go generate
89 - go generate ./...
9- # Make sure pkgreflect is installed.
10- - make pkgreflect
1110
11+
12+ # ###############################################################################
1213builds :
1314- env :
1415 - CGO_ENABLED=0
@@ -18,59 +19,74 @@ builds:
1819 goos :
1920 - linux
2021 - darwin
21- # windows
22+ - windows
2223 goarch :
23- # 386
24+ - 386
2425 - amd64
25- # arm
26- # arm64
26+ - arm
27+ - arm64
28+
2729
30+ # ###############################################################################
2831archives :
29- - replacements :
30- darwin : Darwin
31- linux : Linux
32- windows : Windows
33- 386 : i386
34- amd64 : x86_64
32+ -
33+ name_template : " {{ .ProjectName }}-{{ .Os }}_{{ .Arch }}"
34+
35+ replacements :
36+ darwin : darwin
37+ linux : linux
38+ windows : windows
39+ 386 : i386
40+ amd64 : x86_64
41+
42+ # Set to true, if you want all files in the archive to be in a single directory.
43+ # If set to true and you extract the archive 'goreleaser_Linux_arm64.tar.gz',
44+ # you get a folder 'goreleaser_Linux_arm64'.
45+ # If set to false, all files are extracted separately.
46+ # You can also set it to a custom folder name (templating is supported).
47+ # Default is false.
48+ wrap_in_directory : false
49+
50+ # Archive format. Valid options are `tar.gz`, `tar.xz`, `gz`, `zip` and `binary`.
51+ # If format is `binary`, no archives are created and the binaries are instead
52+ # uploaded directly.
53+ # Default is `tar.gz`.
54+ format : tar.gz
3555
56+ # Can be used to change the archive formats for specific GOOSs.
57+ # Most common use case is to archive as zip on Windows.
58+ # Default is empty.
59+ # format_overrides:
60+ # - goos: windows
61+ # format: zip
62+
63+ # Additional files/template/globs you want to add to the archive.
64+ # Defaults are any files matching `LICENCE*`, `LICENSE*`,
65+ # `README*` and `CHANGELOG*` (case-insensitive).
66+ # files:
67+ # - LICENSE.txt
68+ # - README_{{.Os}}.md
69+ # - CHANGELOG.md
70+ # - docs/*
71+ # - design/*.png
72+ # - templates/**/*
73+
74+
75+ # ###############################################################################
3676checksum :
3777 name_template : ' checksums.txt'
3878
79+
80+ # ###############################################################################
3981snapshot :
4082 name_template : " {{ .Tag }}-next"
4183
84+
85+ # ###############################################################################
4286changelog :
4387 sort : asc
4488 filters :
4589 exclude :
4690 - ' ^docs:'
4791 - ' ^test:'
4892
49- # release:
50- # github:
51- # owner: newclarity
52- # name: launch
53- #
54- # # IDs of the archives to use.
55- # # Defaults to all.
56- # ids:
57- # # foo
58- # # bar
59- #
60- # # You can change the name of the GitLab release.
61- # # Default is `{{.Tag}}`
62- # # name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}"
63- # name_template: "Release {{.ProjectName}}-v{{.Version}} {{.Env.USER}}"
64- #
65- # # You can disable this pipe in order to not upload any artifacts to
66- # # GitLab.
67- # # Defaults to false.
68- # disable: true
69- #
70- # # You can add extra pre-existing files to the release.
71- # # The filename on the release will be the last part of the path (base). If
72- # # another file with the same name exists, the latest one found will be used.
73- # # Defaults to empty.
74- # extra_files:
75- # - glob: ./bin/*
76-
0 commit comments