Set AWS_REGION as a global env variable (#67)

This commit is contained in:
Giacomo 2020-09-28 17:07:36 +02:00 committed by GitHub
parent 51817baecd
commit 24cff45334
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,10 @@ on:
tags:
- v*
# Global vars
env:
AWS_REGION: "us-east-1"
jobs:
build:
name: Build Release
@ -14,7 +18,6 @@ jobs:
SCCACHE_CACHE_SIZE: "1G"
SCCACHE_IDLE_TIMEOUT: 0
AWS_S3_ARTIFACTS_BUCKET: "openethereum-releases"
AWS_REGION: "us-east-1"
strategy:
matrix:
platform:
@ -237,7 +240,7 @@ jobs:
run: |
# Deploy zip artifacts to S3 bucket to a directory whose name is the tagged release version.
# Deploy macos binary artifact (if required, add more `aws s3 cp` commands to deploy specific OS versions)
aws s3 cp macos-artifacts/openethereum s3://${{ env.AWS_S3_ARTIFACTS_BUCKET }}/${{ env.RELEASE_VERSION }}/macos/
aws s3 cp macos-artifacts/openethereum s3://${{ env.AWS_S3_ARTIFACTS_BUCKET }}/${{ env.RELEASE_VERSION }}/macos/ --region ${{ env.AWS_REGION }}
outputs:
linux-artifact: ${{ steps.create_zip_linux.outputs.LINUX_ARTIFACT }}