go releaser deprecations

This commit is contained in:
Berger Eugene 2023-06-13 02:00:45 +03:00
parent 4c69e78e37
commit fc271b7cc4
2 changed files with 12 additions and 11 deletions

View File

@ -35,12 +35,13 @@ builds:
- -X github.com/f1bonacc1/process-compose/src/config.Date={{.CommitDate}}
- -s -w
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- id: process-compose
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
@ -66,7 +67,7 @@ changelog:
- '^test:'
release:
draft: true
replace_existing_draft: true
replace_existing_draft: false
disable: false
# modelines, feel free to remove those if you don't want/use them:
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json

View File

@ -1,7 +1,7 @@
NAME=process-compose
RM=rm
VERSION = v0.51.0
#VERSION = $(shell git describe --abbrev=0)
#VERSION = v0.51.0
VERSION = $(shell git describe --abbrev=0)
GIT_REV ?= $(shell git rev-parse --short HEAD)
DATE ?= $(shell TZ=UTC0 git show --quiet --date='format-local:%Y-%m-%dT%H:%M:%SZ' --format="%cd")
NUMVER = $(shell echo ${VERSION} | cut -d"v" -f 2)
@ -63,6 +63,6 @@ clean:
$(RM) bin/${NAME}*
release:
source exports
goreleaser release --rm-dist --skip-validate
goreleaser release --clean --skip-validate
snapshot:
goreleaser release --snapshot --rm-dist
goreleaser release --snapshot --clean