File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments