Skip to content

Commit cf34558

Browse files
author
Roberto Sora
committed
Add s3 upload support in .goreleaser.yml via blob configuration
- used blob configuration instead of deprecated s3 one. this requires adding a AWS_DEFAULT_REGION env var to the drone step (toghether with the IAM credentials), because this property is missing in the blob config
1 parent 3140365 commit cf34558

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Diff for: .drone.yml

+5
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ steps:
6161
environment:
6262
GITHUB_TOKEN:
6363
from_secret: github_token
64+
AWS_ACCESS_KEY_ID:
65+
from_secret: downloads_drone_io_aws_access_key_id
66+
AWS_SECRET_ACCESS_KEY:
67+
from_secret: downloads_drone_io_aws_secret_access_key
68+
AWS_DEFAULT_REGION: 'us-east-1'
6469
commands:
6570
- goreleaser
6671

Diff for: .goreleaser.yml

+8
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,11 @@ archives:
9292
files:
9393
- README.md
9494
- LICENSE.txt
95+
96+
blob:
97+
-
98+
provider: s3
99+
bucket: arduino-downloads-prod-beagle
100+
ids:
101+
- arduino_cli
102+
folder: "{{ .ProjectName }}"

0 commit comments

Comments
 (0)