Skip to content

Commit 1845b37

Browse files
committed
Only update on main and prod pushes
1 parent 94ed69c commit 1845b37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/main_workflow.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@ jobs:
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 }}/"
6262
- name: Upload tdb-dashboard to dev s3
63+
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
6364
env:
6465
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
6566
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
6667
run: aws s3 sync packages/tdb-dashboard/dist/ s3://${{ secrets.S3_DEV_BUCKET }} --region=${{ secrets.AWS_REGION }}
6768
- name: Upload tdb-dashboard to prod s3
69+
if: ${{ github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') }}
6870
env:
6971
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
7072
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)