Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,16 +262,29 @@ release:
# - glob: ./glob/foo/to/bar/file/foobar/override_from_previous

blobs:
-
provider: s3
region: us-east-1
bucket: '{{ .Env.AWS_S3_BUCKET }}'
- provider: s3
disable: 'false'
ids:
- s3-versioned
- s3-unversioned
bucket: '{{ .Env.AWS_S3_BUCKET }}'
region: us-east-1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use an environment variable for this too.

directory: '/'
acl: public-read
disable: '{{ ne .Prerelease "" }}'
extra_files:
- glob: ./dist/s3-versioned_*/**
extra_files_only: true

- provider: s3
disable: '{{ if .Prerelease }}true{{ else }}false{{ end }}'
ids:
- s3-unversioned

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, for now, I think we are building the same binaries twice, we could use name_template in the extra_files to change the name of the s3_versioned files.

bucket: '{{ .Env.AWS_S3_BUCKET }}'
region: us-east-1
directory: '/'
acl: public-read
extra_files:
- glob: ./dist/s3-unversioned_*/**
extra_files_only: true

winget:
-
Expand Down