Skip to content

Commit

Permalink
Merge pull request #282 from yudong2015/fix-goreleaser
Browse files Browse the repository at this point in the history
update goreleaser: remove replacements
  • Loading branch information
ks-ci-bot committed Sep 7, 2023
2 parents 805484b + c9178f5 commit ec01c04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }}
- name: Build image
Expand Down
25 changes: 7 additions & 18 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ archives:
id: "ks"
builds:
- ks
replacements:
darwin: darwin
linux: linux
windows: windows
amd64: amd64
arm64: arm64
format_overrides:
- goos: windows
format: zip
Expand All @@ -60,17 +54,13 @@ archives:
id: "kubectl-ks"
builds:
- "kubectl-ks"
replacements:
darwin: darwin
linux: linux
amd64: amd64
files:
- README.md
- LICENSE
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next-{{.ShortCommit}}"
name_template: "{{ .Tag }}-next-{{ .ShortCommit }}"
changelog:
skip: true
sort: asc
Expand All @@ -79,7 +69,12 @@ changelog:
- '^docs:'
- '^test:'
nfpms:
- file_name_template: "ks-{{.Os}}-{{.Arch}}"
- file_name_template: >-
ks-
{{- .Os }}-
{{- if eq .Arch "amd64" }}64bit
{{- else if eq .Arch "darwin" }}macOS
{{- else }}{{ .Arch }}{{ end -}}
id: "ks"
homepage: https://github.com/kubesphere-sigs/ks
description: ks is a tool which makes it be easy to work with KubeSphere.
Expand All @@ -94,9 +89,3 @@ nfpms:
- vim
- kubectl
bindir: /usr/local/bin
replacements:
amd64: 64bit
arm64: arm64
darwin: macOS
linux: linux
windows: windows

0 comments on commit ec01c04

Please sign in to comment.