version: 2 gitea_urls: api: https://codeberg.org/api/v1/ download: https://codeberg.org builds: - env: - CGO_ENABLED=0 mod_timestamp: '{{ .CommitTimestamp }}' flags: - -trimpath ldflags: - '-s -w -X main.version={{.Version}}' goos: - linux - darwin - windows goarch: - amd64 - arm64 binary: '{{ .ProjectName }}_v{{ .Version }}' archives: - formats: - zip name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' checksum: name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' algorithm: sha256 signs: - artifacts: checksum args: - "--batch" - "--pinentry-mode" - "loopback" - "--passphrase" - "{{ .Env.PASSPHRASE }}" - "--local-user" - "{{ .Env.GPG_FINGERPRINT }}" - "--output" - "${signature}" - "--detach-sign" - "${artifact}" release: draft: false