before: hooks: - go mod tidy builds: - env: - CGO_ENABLED=0 goos: - linux - windows goarch: - amd64 flags: - -trimpath ldflags: - -s -w -X main.Version={{ .Version }} binary: >- {{ .ProjectName }}- {{- .Version }}- {{- .Os }}- {{- if eq .Arch "amd64" }}amd64 {{- else if eq .Arch "amd64_v1" }}amd64 {{- else if eq .Arch "386" }}386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}-{{ .Arm }}{{ end }} no_unique_dist_dir: true hooks: post: - cmd: xz -k -9 {{ .Path }} dir: ./dist/ - cmd: sh .goreleaser.checksum.sh {{ .Path }} - cmd: sh .goreleaser.checksum.sh {{ .Path }}.xz archives: - format: binary name_template: "{{ .Binary }}" allow_different_binary_count: true checksum: name_template: 'checksums.txt' extra_files: - glob: ./**.xz force_token: gitea snapshot: name_template: "{{ .Branch }}-devel" nightly: name_template: "{{ .Branch }}" gitea_urls: api: https://gitea.s1d3sw1ped.com/api/v1 download: https://gitea.s1d3sw1ped.com release: extra_files: - glob: ./**.xz - glob: ./**.xz.sha256