summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2021-04-10 14:19:19 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2021-04-10 14:19:19 +0900
commitc7c5e7670a9bccf5c7ba2b8dd3fa73135be2b734 (patch)
tree99941337b4c0f6624cd158c3bec3c6a47a753afb
parentf6c621ef1b04b2ebb3de4b10644defc77aa1743e (diff)
Fix goreleaser.yml
-rw-r--r--.goreleaser.yml85
1 files changed, 38 insertions, 47 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
index cb14e71d..bab275d6 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -14,6 +14,25 @@ builds:
- amd64
ldflags:
- "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
+ hooks:
+ post: |
+ sh -c '
+ cat > /tmp/fzf-gon-amd64.hcl << EOF
+ source = ["./dist/fzf-macos_darwin_amd64/fzf"]
+ bundle_id = "kr.junegunn.fzf"
+ apple_id {
+ username = "junegunn.c@gmail.com"
+ password = "@env:AC_PASSWORD"
+ }
+ sign {
+ application_identity = "Developer ID Application: Junegunn Choi (Y254DRW44Z)"
+ }
+ zip {
+ output_path = "./dist/fzf-{{ .Version }}-darwin_amd64.zip"
+ }
+ EOF
+ gon /tmp/fzf-gon-amd64.hcl
+ '
- id: fzf-macos-arm
binary: fzf
@@ -23,6 +42,25 @@ builds:
- arm64
ldflags:
- "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
+ hooks:
+ post: |
+ sh -c '
+ cat > /tmp/fzf-gon-arm64.hcl << EOF
+ source = ["./dist/fzf-macos-arm_darwin_arm64/fzf"]
+ bundle_id = "kr.junegunn.fzf"
+ apple_id {
+ username = "junegunn.c@gmail.com"
+ password = "@env:AC_PASSWORD"
+ }
+ sign {
+ application_identity = "Developer ID Application: Junegunn Choi (Y254DRW44Z)"
+ }
+ zip {
+ output_path = "./dist/fzf-{{ .Version }}-darwin_arm64.zip"
+ }
+ EOF
+ gon /tmp/fzf-gon-arm64.hcl
+ '
- id: fzf
goos:
@@ -61,53 +99,6 @@ archives:
files:
- non-existent*
-signs:
- - id: fzf-macos-sign
- ids: [fzf-macos]
- artifacts: all
- cmd: sh
- args:
- - "-c"
- - |-
- cat > /tmp/fzf-gon-amd64.hcl << EOF
- source = ["./dist/fzf-macos_darwin_amd64/fzf"]
- bundle_id = "kr.junegunn.fzf"
- apple_id {
- username = "junegunn.c@gmail.com"
- password = "@env:AC_PASSWORD"
- }
- sign {
- application_identity = "Developer ID Application: Junegunn Choi (Y254DRW44Z)"
- }
- zip {
- output_path = "./dist/fzf-{{ .Version }}-darwin_amd64.zip"
- }
- EOF
- gon /tmp/fzf-gon-amd64.hcl
-
- - id: fzf-macos-arm-sign
- ids: [fzf-macos-arm]
- artifacts: all
- cmd: sh
- args:
- - "-c"
- - |-
- cat > /tmp/fzf-gon-arm64.hcl << EOF
- source = ["./dist/fzf-macos-arm_darwin_arm64/fzf"]
- bundle_id = "kr.junegunn.fzf"
- apple_id {
- username = "junegunn.c@gmail.com"
- password = "@env:AC_PASSWORD"
- }
- sign {
- application_identity = "Developer ID Application: Junegunn Choi (Y254DRW44Z)"
- }
- zip {
- output_path = "./dist/fzf-{{ .Version }}-darwin_arm64.zip"
- }
- EOF
- gon /tmp/fzf-gon-arm64.hcl
-
release:
github:
owner: junegunn