Skip to content

Commit 07a000e

Browse files
authored
Goreleaser s3 upload not working (#1243)
* [ci] Fix upload of release build artifacts to s3
1 parent 6187feb commit 07a000e

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.goreleaser.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,16 +262,29 @@ release:
262262
# - glob: ./glob/foo/to/bar/file/foobar/override_from_previous
263263

264264
blobs:
265-
-
266-
provider: s3
267-
region: us-east-1
268-
bucket: '{{ .Env.AWS_S3_BUCKET }}'
265+
- provider: s3
266+
disable: 'false'
269267
ids:
270268
- s3-versioned
271-
- s3-unversioned
269+
bucket: '{{ .Env.AWS_S3_BUCKET }}'
270+
region: us-east-1
271+
directory: '/'
272272
acl: public-read
273-
disable: '{{ ne .Prerelease "" }}'
273+
extra_files:
274+
- glob: ./dist/s3-versioned_*/**
275+
extra_files_only: true
274276

277+
- provider: s3
278+
disable: '{{ if .Prerelease }}true{{ else }}false{{ end }}'
279+
ids:
280+
- s3-unversioned
281+
bucket: '{{ .Env.AWS_S3_BUCKET }}'
282+
region: us-east-1
283+
directory: '/'
284+
acl: public-read
285+
extra_files:
286+
- glob: ./dist/s3-unversioned_*/**
287+
extra_files_only: true
275288

276289
winget:
277290
-

0 commit comments

Comments
 (0)