github.com/andresbott/yamlfmt@v0.1.0/.goreleaser.yaml (about) 1 # This is an example .goreleaser.yml file with some sensible defaults. 2 # Make sure to check the documentation at https://goreleaser.com 3 4 # used to release in GITHUB 5 env_files: 6 github_token: ~/.goreleaser/gh_token 7 8 before: 9 hooks: 10 # You may remove this if you don't use go modules. 11 - go mod tidy 12 - go mod vendor 13 builds: 14 - env: 15 - CGO_ENABLED=0 16 goos: 17 - linux 18 19 ldflags: 20 - -s -w -X github.com/andresbott/yamlfmt/app/cli.Version={{.Version}} 21 - -s -w -X github.com/andresbott/yamlfmt/app/cli.BuildTime={{.Date}} 22 - -s -w -X github.com/andresbott/yamlfmt/app/cli.ShaVer={{.Commit}} 23 24 archives: 25 - replacements: 26 linux: Linux 27 28 # see full detail: https://goreleaser.com/customization/nfpm/ 29 nfpms: 30 - 31 id: yamlfmt 32 package_name: yamlfmt 33 34 maintainer: "Andres Bott <contact@andresbott.com>" 35 description: | 36 format yaml files to a opinionated defaults, it is inspired ing go fmt. 37 license: LGPL 38 formats: 39 - deb 40 41 # Version Prerelease. 42 # Default is extracted from `version` if it is semver compatible. 43 # prerelease: snapshot 44 45 #pacakge classification 46 section: default 47 priority: optional 48 49 # Scripts to execute during the installation of the package. 50 # Keys are the possible targets during the installation process 51 # Values are the paths to the scripts which will be executed 52 scripts: 53 # preinstall: "scripts/preinstall.sh" 54 postinstall: "zarf/postinstall.sh" 55 # preremove: "scripts/preremove.sh" 56 # postremove: "scripts/postremove.sh" 57 58 59 checksum: 60 name_template: 'checksums.txt' 61 62 snapshot: 63 name_template: "{{ incpatch .Version }}-snapshot" 64 65 changelog: 66 sort: asc 67 filters: 68 exclude: 69 - '^docs:' 70 - '^test:'