From 6b0b73be6e59cf2172f9b344e15fabc4d9fe0890 Mon Sep 17 00:00:00 2001 From: shyam-cb <131658626+shyam-cb@users.noreply.github.com> Date: Thu, 14 Mar 2024 13:16:59 +0530 Subject: [PATCH] chore: cicd fix for s3 windows binary (#11) * s3 binary name fix for windows --- .goreleaser.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index c08d1a4..1b3d3d1 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -13,8 +13,8 @@ builds: - cmd: go mod tidy - cmd: go mod verify post: - - cmd: ditto -c -k {{ .Path }} {{ .Path }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}.zip - - cmd: aws s3 cp {{ .Path }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}.zip s3://{{ .Env.BUCKET_NAME }}/ --acl {{ .Env.BUCKET_ACL }} + - cmd: ditto -c -k {{ .Path }} {{ trimsuffix .Path ".exe" }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}.zip + - cmd: aws s3 cp {{ trimsuffix .Path ".exe" }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}.zip s3://{{ .Env.BUCKET_NAME }}/ --acl {{ .Env.BUCKET_ACL }} - id: "mac" goos: - darwin @@ -28,8 +28,8 @@ builds: - cmd: ditto -c -k --keepParent {{ .Path }} {{ .Path }}.zip - cmd: xcrun notarytool submit {{ .Path }}.zip --apple-id {{ .Env.APPLE_ID }} --password {{ .Env.APPLE_APP_PASSWORD }} --team-id {{ .Env.APPLE_TEAM_ID }} --wait - cmd: rm -rf {{ .Path }}.zip - - cmd: ditto -c -k {{ .Path }} {{ trimsuffix .Path ".exe" }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}.zip - - cmd: aws s3 cp {{ trimsuffix .Path ".exe" }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}.zip s3://{{ .Env.BUCKET_NAME }}/ --acl {{ .Env.BUCKET_ACL }} + - cmd: ditto -c -k {{ .Path }} {{ .Path }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}.zip + - cmd: aws s3 cp {{ .Path }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}.zip s3://{{ .Env.BUCKET_NAME }}/ --acl {{ .Env.BUCKET_ACL }} release: draft: false