From 13a14cb006ff8c910c9f22fac8c75f0aa071f4ef Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Fri, 30 Apr 2021 17:48:58 -0700 Subject: [PATCH] fixed custom-publisher Signed-off-by: Sam Alba --- .goreleaser.yml | 54 +++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 810289e0..324995c0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -22,15 +22,15 @@ builds: - arm64 archives: -- - name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}" - replacements: - files: - - LICENSE - - examples/**/* - format_overrides: - - goos: windows - format: zip + - + name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}" + replacements: + files: + - LICENSE + - examples/**/* + format_overrides: + - goos: windows + format: zip checksum: name_template: 'checksums.txt' @@ -46,27 +46,29 @@ changelog: - '^test:' brews: -- - tap: - owner: dagger - name: homebrew-tap - commit_author: - name: dagger-bot - email: noreply@dagger.io - url_template: "https://dagger-io.s3.amazonaws.com/dagger/releases/{{ .Version }}/{{ .ArtifactName }}" - homepage: "https://github.com/dagger/dagger" - description: "Dagger is a programmable deployment system." - test: | - system "#{bin}/dagger version" + - + tap: + owner: dagger + name: homebrew-tap + commit_author: + name: dagger-bot + email: noreply@dagger.io + url_template: "https://dagger-io.s3.amazonaws.com/dagger/releases/{{ .Version }}/{{ .ArtifactName }}" + homepage: "https://github.com/dagger/dagger" + description: "Dagger is a programmable deployment system." + test: | + system "#{bin}/dagger version" blobs: -- - provider: s3 - region: us-east-1 - bucket: dagger-io - folder: "dagger/releases/{{ .Version }}" + - + provider: s3 + region: us-east-1 + bucket: dagger-io + folder: "dagger/releases/{{ .Version }}" publishers: - name: publish-version cmd: sh -c "echo {{ .Version }} | aws s3 cp - s3://dagger-io/dagger/latest_version" + env: + - PATH={{ .Env.PATH }}