fuzzyworld

template / files / .goreleaser.yaml

.goreleaser.yaml

Blame: the commit that last changed each line · file · history

b3de39c0 2022-11-16 Pavel Safronov1# This is an example .goreleaser.yml file with some sensible defaults.
2# Make sure to check the documentation at https://goreleaser.com
d0ee3e8b 2026-01-31 Pavel Safronov3version: 2
b3de39c0 2022-11-16 Pavel Safronov4before:
5 hooks:
6 # You may remove this if you don't use go modules.
7 - go mod tidy
8builds:
37160b89 2026-05-01 Pavel Safronov9 - main: ./cmd/template/
10 env:
b3de39c0 2022-11-16 Pavel Safronov11 - CGO_ENABLED=0
12 goos:
13 - linux
14 - windows
15 - darwin
2c121600 2023-01-30 Pavel Safronov16 ldflags:
fd5b1196 2023-01-30 Pavel Safronov17 - -w -s -X main.Version={{.Version}}
b3de39c0 2022-11-16 Pavel Safronov18checksum:
19 name_template: 'checksums.txt'
20snapshot:
ef540250 2026-01-31 Pavel Safronov21 version_template: "{{ incpatch .Version }}-next"
b3de39c0 2022-11-16 Pavel Safronov22changelog:
23 sort: asc
24 filters:
25 exclude:
26 - '^docs:'
27 - '^test:'
e7f33918 2023-01-29 Pavel Safronov28# from https://goreleaser.com/customization/homebrew/
6bc452c2 2023-01-31 Pavel Safronov29# for https://gitlab.com/PavelSafronov/template
e7f33918 2023-01-29 Pavel Safronov30brews:
31 -
32 # Name template of the recipe
33 # Default to project name
34 name: template
35
36 # GitHub/GitLab repository to push the formula to
ef540250 2026-01-31 Pavel Safronov37 repository:
e7f33918 2023-01-29 Pavel Safronov38 # Repository owner template. (templateable)
6bc452c2 2023-01-31 Pavel Safronov39 owner: PavelSafronov
e7f33918 2023-01-29 Pavel Safronov40
41 # Repository name. (templateable)
42 name: template
43
44 # Optionally a branch can be provided. (templateable)
45 #
46 # Defaults to the default repository branch.
47 branch: main
48
49 # Template for the url which is determined by the given Token (github,
50 # gitlab or gitea)
51 #
52 # Default depends on the client.
6bc452c2 2023-01-31 Pavel Safronov53 # https://gitlab.com/PavelSafronov/template/-/releases/v0.1.17/downloads/template_0.1.17_Linux_i386.tar.gz
54 url_template: "https://gitlab.com/PavelSafronov/template/-/releases/{{ .Tag }}/downloads/{{ .ArtifactName }}"
e7f33918 2023-01-29 Pavel Safronov55
56 # Git author used to commit to the repository.
57 # Defaults are shown.
58 commit_author:
59 name: Pavel Safronov
60 email: pavel.safronov@gmail.com
61
62 # The project name and current git tag are used in the format string.
63 commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
64
65 # Folder inside the repository to put the formula.
66 # Default is the root folder.
ef540250 2026-01-31 Pavel Safronov67 directory: HomebrewFormula
e7f33918 2023-01-29 Pavel Safronov68
69 # Caveats for the user of your binary.
70 # Default is empty.
6bc452c2 2023-01-31 Pavel Safronov71 caveats: "How to use this binary: https://gitlab.com/PavelSafronov/template/-/blob/main/README.md"
e7f33918 2023-01-29 Pavel Safronov72
73 # Your app's homepage.
74 # Default is empty.
6bc452c2 2023-01-31 Pavel Safronov75 homepage: "https://gitlab.com/PavelSafronov/template"
e7f33918 2023-01-29 Pavel Safronov76
77 # Template of your app's description.
78 # Default is empty.
79 description: "This CLI creates files and folders with generated templated names and content."
80
81 # SPDX identifier of your app's license.
82 # Default is empty.
83 license: "MIT"
84
85 # So you can `brew test` your formula.
86 # Default is empty.
87 test: |
88 system "#{bin}/template --version"
89
90 # Custom post_install script for brew.
91 # Could be used to do any additional work after the "install" script
92 # Default is empty.
93 post_install: |
e5793361 2026-01-16 Pavel Safronov94 system "#{bin}/template init"