From 1c69298a02630011bcc5b67095585c5373dc4929 Mon Sep 17 00:00:00 2001 From: Roberto Sora Date: Tue, 30 Jul 2019 15:04:22 +0200 Subject: [PATCH] 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 --- .drone.yml | 5 +++++ .goreleaser.yml | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/.drone.yml b/.drone.yml index 36b97ec2249..32b87324d5a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -61,6 +61,11 @@ steps: environment: GITHUB_TOKEN: from_secret: github_token + AWS_ACCESS_KEY_ID: + from_secret: downloads_drone_io_aws_access_key_id + AWS_SECRET_ACCESS_KEY: + from_secret: downloads_drone_io_aws_secret_access_key + AWS_DEFAULT_REGION: 'us-east-1' commands: - goreleaser diff --git a/.goreleaser.yml b/.goreleaser.yml index c7f347eef8a..5abd4f57c8c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -92,3 +92,11 @@ archives: files: - README.md - LICENSE.txt + +blob: + - + provider: s3 + bucket: arduino-downloads-prod-beagle + ids: + - arduino_cli + folder: "{{ .ProjectName }}" \ No newline at end of file