Skip to content

Commit 30809a4

Browse files
Merge pull request #131 from terminusdb/upload_aws
Upload dashboard to s3
2 parents 87611e0 + 1845b37 commit 30809a4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/main_workflow.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ jobs:
5959
- name: Upload tdb-dashboard prod
6060
if: ${{ github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') }}
6161
run: gsutil -h "Cache-Control:public, max-age=60" cp -r packages/tdb-dashboard/dist/* "gs://${{ secrets.GCLOUD_BUCKET }}/"
62+
- name: Upload tdb-dashboard to dev s3
63+
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
64+
env:
65+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
66+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
67+
run: aws s3 sync packages/tdb-dashboard/dist/ s3://${{ secrets.S3_DEV_BUCKET }} --region=${{ secrets.AWS_REGION }}
68+
- name: Upload tdb-dashboard to prod s3
69+
if: ${{ github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') }}
70+
env:
71+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
72+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
73+
run: aws s3 sync packages/tdb-dashboard/dist/ s3://${{ secrets.S3_PROD_BUCKET }} --region=${{ secrets.AWS_REGION }}
6274
- name: Clean cloudflare cache
6375
if: ${{ github.event_name != 'pull_request' }}
6476
run: python3 .ci/clean_cloudflare_cache.py ${{ github.ref }}

0 commit comments

Comments
 (0)