2020-07-22 00:48:14 +00:00
|
|
|
name: Upload S3
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-08-08 21:01:45 +00:00
|
|
|
workflow_dispatch:
|
2020-07-22 00:48:14 +00:00
|
|
|
jobs:
|
2020-08-06 19:17:38 +00:00
|
|
|
upload-s3:
|
2020-07-22 00:48:14 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-08-07 10:47:01 +00:00
|
|
|
- name: Upload (from main repo only)
|
|
|
|
if: github.repository_owner == 'trustwallet'
|
|
|
|
uses: jakejarvis/s3-sync-action@master
|
2020-07-22 00:48:14 +00:00
|
|
|
with:
|
2021-04-23 20:26:21 +00:00
|
|
|
args: --acl public-read --follow-symlinks --delete --exclude '*' --include 'dapps/*' --include 'blockchains/*' --include 'history/*'
|
2020-07-22 00:48:14 +00:00
|
|
|
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'
|