Skip to content

Commit

Permalink
ci: fix replacements (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfabianski committed Oct 16, 2023
1 parent 037cf32 commit 342f245
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
7 changes: 1 addition & 6 deletions .gon.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source = ["./dist/macos_darwin_amd64/gon"]
source = ["./dist/macos_darwin_amd64_v1/gon"]
bundle_id = "com.bearer.gon"

apple_id {
Expand All @@ -12,8 +12,3 @@ sign {
zip {
output_path = "./dist/gon_macos.zip"
}

dmg {
output_path = "./dist/gon_macos.dmg"
volume_name = "gon"
}
15 changes: 5 additions & 10 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,20 @@ builds:
dir: ./cmd/gon/

archives:
- id: macos-zip
- id: macos
format: zip
name_template: >-
{{- .ProjectName }}_
{{- if eq .Os "darwin" }}macos
{{- else }}{{ .Os }}_{{ end -}}
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
{{- else }}{{ .Os }}{{ end }}
checksum:
disable: true

signs:
- signature: "${artifact}_macos.dmg"
- signature: "${artifact}_macos.zip"
ids:
- macos-zip
- macos
cmd: gon
args:
- .gon.hcl
Expand All @@ -52,14 +48,13 @@ release:
ids:
- none
extra_files:
- glob: ./dist/gon_macos.dmg
- glob: ./dist/gon_macos.zip

brews:
- # Name template of the recipe
name: gon
folder: Formula
tap:
repository:
owner: Bearer
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
Expand Down

0 comments on commit 342f245

Please sign in to comment.