1
0
licensmith/.goreleaser.yaml
Wiktor Zykubek e0cc0f8c06
ci: drop support for gitea release workflow
Currently Gitea does not support (go-gitea/gitea#23642) equivalent of GITHUB_TOKEN variable and
tools such GoReleaser can't be easily adjusted to support both GitHub
and Gitea Actions. For Gitea is needed to use PAT what is associated
with security risk.
2024-12-27 21:18:14 +01:00

46 lines
975 B
YAML

# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
project_name: Licensmith
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
changelog:
sort: asc
filters:
include:
- "^feat"
- "^fix"
- "^style"
- "^refactor"