[CI] Upload assets repo to S3 bucket (#2832)

* [CI] Upload assets repo to S3 bucket

* Update pr-ci.yml

* Update pr-ci.yml

* Update pr-ci.yml

* Update pr-ci.yml

* Update pr-ci.yml

* Update pr-ci.yml

* Include blockchains

* Update pr-ci.yml

* Update pr-ci.yml
This commit is contained in:
Viktor Radchenko 2020-07-21 17:48:14 -07:00 committed by GitHub
parent 5861b2fd47
commit edbee267e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

18
.github/workflows/s3_upload.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Upload S3
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete --exclude '*' --include 'dapps/*' --include 'blockchains/*'
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'