Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goreleaser s3 upload not working #1243

Merged
merged 6 commits into from
Jul 23, 2024
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
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
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