github.com/9elements/firmware-action/action@v0.0.0-20240514065043-044ed91c9ed8/.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 # The lines below are called `modelines`. See `:help modeline` 5 # Feel free to remove those if you don't want/need to use them. 6 # yaml-language-server: $schema=https://goreleaser.com/static/schema.json 7 # vim: set ts=2 sw=2 tw=0 fo=cnqoj 8 9 version: 1 10 dist: '../bin' 11 project_name: 'firmware-action' 12 13 builds: 14 - env: 15 - CGO_ENABLED=0 16 goos: 17 - linux 18 - windows 19 - darwin 20 21 archives: 22 - format: tar.gz 23 # this name template makes the OS and Arch compatible with the results of `uname`. 24 name_template: >- 25 {{ .ProjectName }}_ 26 {{- title .Os }}_ 27 {{- if eq .Arch "amd64" }}x86_64 28 {{- else if eq .Arch "386" }}i386 29 {{- else }}{{ .Arch }}{{ end }} 30 {{- if .Arm }}v{{ .Arm }}{{ end }} 31 # use zip for windows archives 32 format_overrides: 33 - goos: windows 34 format: zip