template / commit
Attempting to add brew formula. (Testing on main is bad, kids. Only do it if there are no users of your hobby project.)
.goreleaser.yaml | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ default_config.go | 4 +++ 2 files changed, 84 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index dbce2c2..e312942 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -28,4 +28,84 @@ changelog: exclude: - '^docs:' - '^test:' +# from https://goreleaser.com/customization/homebrew/ +# for https://gitlab.com/fuzzy-rp/template +brews: + - + # Name template of the recipe + # Default to project name + name: template + + # GitHub/GitLab repository to push the formula to + tap: + # Repository owner template. (templateable) + owner: fuzzy-rp + + # Repository name. (templateable) + name: template + + # Optionally a branch can be provided. (templateable) + # + # Defaults to the default repository branch. + branch: main + + # Template for the url which is determined by the given Token (github, + # gitlab or gitea) + # + # Default depends on the client. + # https://gitlab.com/fuzzy-rp/template/-/releases/v0.1.17/downloads/template_0.1.17_Linux_i386.tar.gz + url_template: "https://gitlab.com/fuzzy-rp/template/-/releases/{{ .Tag }}/downloads/{{ .ArtifactName }}" + + # Git author used to commit to the repository. + # Defaults are shown. + commit_author: + name: Pavel Safronov + email: pavel.safronov@gmail.com + + # The project name and current git tag are used in the format string. + commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" + + # Folder inside the repository to put the formula. + # Default is the root folder. + folder: HomebrewFormula + + # Caveats for the user of your binary. + # Default is empty. + caveats: "How to use this binary: https://gitlab.com/fuzzy-rp/template/-/blob/main/README.md" + + # Your app's homepage. + # Default is empty. + homepage: "https://gitlab.com/fuzzy-rp/template/" + + # Template of your app's description. + # Default is empty. + description: "This CLI creates files and folders with generated templated names and content." + + # SPDX identifier of your app's license. + # Default is empty. + license: "MIT" + + # Packages your package depends on. + dependencies: + # additional template functions and variables + - name: sprig + # logging library + - name: logrus + # testing library + - name: testify + # command line interface library + - name: cli + + # So you can `brew test` your formula. + # Default is empty. + test: | + system "#{bin}/template --version" + # ... + + + # Custom post_install script for brew. + # Could be used to do any additional work after the "install" script + # Default is empty. + post_install: | + template reset diff --git a/default_config.go b/default_config.go index fa4e813..3791e61 100644 --- a/default_config.go +++ b/default_config.go @@ -136,6 +136,10 @@ cspell:words nanite {{if .ProjectName}}Therapy notes on {{.ProjectName}}{{else}}Therapy notes{{end}} +## Spelling + +cspell:words cromulent embiggen + ## Writing {{if .ProjectName}}Hello {{.ProjectName}},{{else}}Hello,{{end}}