Skip to content

Commit f446f90

Browse files
authored
fix goreleaser deprecation (updatecli#1405)
Signed-off-by: Olblak <me@olblak.com>
1 parent 05ce2bc commit f446f90

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

.goreleaser.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
archives:
3-
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
4-
replacements:
5-
darwin: Darwin
6-
linux: Linux
7-
windows: Windows
8-
amd64: x86_64
3+
- name_template: >-
4+
{{ .ProjectName }}_
5+
{{- title .Os }}_
6+
{{- if eq .Arch "amd64" }}x86_64
7+
{{- else if eq .Arch "386" }}i386
8+
{{- else }}{{ .Arch }}{{ end }}
99
format_overrides:
1010
- goos: windows
1111
format: zip
@@ -46,7 +46,7 @@ before:
4646
brews:
4747
- name: updatecli
4848
folder: Formula
49-
tap:
49+
repository:
5050
owner: updatecli
5151
name: homebrew-updatecli
5252
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ clean: ## Clean go test cache
1818

1919
.PHONY: build
2020
build: ## Build updatecli as a "dirty snapshot" (no tag, no release, but all OS/arch combinations)
21-
goreleaser build --snapshot --rm-dist
21+
goreleaser build --snapshot --clean
2222

2323
.PHONY: build.all
2424
build.all: ## Build updatecli for "release" (tag or release and all OS/arch combinations)
25-
goreleaser --rm-dist --skip-publish
25+
goreleaser --clean --skip-publish
2626

2727
.PHONY: release ## Create a new updatecli release including packages
2828
release: ## release.snapshot generate a snapshot release but do not published it (no tag, but all OS/arch combinations)
29-
goreleaser --rm-dist
29+
goreleaser --clean
3030

3131
.PHONY: release.snapshot ## Create a new snapshot release without publishing assets
3232
release.snapshot: ## release.snapshot generate a snapshot release but do not published it (no tag, but all OS/arch combinations)
33-
goreleaser --snapshot --rm-dist --skip-publish
33+
goreleaser --snapshot --clean --skip-publish
3434

3535
.PHONY: diff
3636
diff: ## Run the "diff" updatecli's subcommand for smoke test

0 commit comments

Comments
 (0)