pcmt/.goreleaser.yaml

60 lines
1.4 KiB
YAML

# Copyright 2023 wanderer <a_mirre at utb dot cz>
# SPDX-License-Identifier: GPL-3.0-or-later
---
project_name: pcmt
git:
prerelease_suffix: "-rc"
archives:
# - name_template: '{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}'
- name_template: '{{ .ProjectName }}_v{{ .Version }}'
meta: true
before:
hooks:
- go generate .
- go mod tidy
builds:
- env: [CGO_ENABLED=0]
goamd64:
- v2
flags:
- -trimpath
goarch:
- amd64
# - arm64
goos:
- linux
# - freebsd
ldflags:
- -s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }}
mod_timestamp: '{{ .CommitTimestamp }}'
release:
disable: false
draft: false
prerelease: true
skip_upload: false
extra_files:
- glob: ./exampleConfig.dhall
- glob: ./dist/pcmt_linux_amd64_v2/pcmt
mode: replace
gitea:
owner: mirre-mt
name: pcmt
sboms:
- artifacts: binary
snapshot:
# Default is `{{ .Version }}-SNAPSHOT-{{.ShortCommit}}`. Templates: allowed.
name_template: '{{ incpatch .Version }}_pre-g{{.ShortCommit}}-dev'
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA512SUMS.txt"
algorithm: sha512
extra_files:
- glob: ./exampleConfig.dhall
- glob: ./dist/pcmt_linux_amd64_v2/pcmt
changelog:
use: git
sort: asc
gitea_urls:
api: https://git.dotya.ml/api/v1
download: https://git.dotya.ml