From c3d0ac810f8ed63542a6b1ab5362c1eea8a8c7a6 Mon Sep 17 00:00:00 2001 From: Di Xu Date: Thu, 20 Jul 2023 11:02:35 +0800 Subject: [PATCH] remove deprecated goreleaser replacements section (#11) Signed-off-by: Di Xu --- .github/workflows/release.yaml | 2 +- .goreleaser.yml | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 422c7d6..cd2d8aa 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -23,7 +23,7 @@ jobs: with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Update new version in krew-index diff --git a/.goreleaser.yml b/.goreleaser.yml index 0e12939..308d234 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -34,6 +34,8 @@ archives: - id: kubectl-clusternet builds: - kubectl-clusternet - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' - replacements: - 386: i386 \ No newline at end of file + name_template: >- + {{ .ProjectName }}_ + {{- .Os }}_ + {{- if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }}{{ with .Arm }}v{{ . }}{{ end }}