From 8951f2a3af2b6ac19eff2a45aafc1bb7e029cdb2 Mon Sep 17 00:00:00 2001 From: Florian Dieminger Date: Mon, 8 May 2023 20:15:50 +0200 Subject: [PATCH] fix(sync): skip rsync for static (#8805) * fix(sync): skip rsync for static also fix blog index img width * prod build --- .github/workflows/prod-build.yml | 2 +- .github/workflows/stage-build.yml | 2 +- client/src/blog/index.scss | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prod-build.yml b/.github/workflows/prod-build.yml index cf1ae43ce584..6268d264eba9 100644 --- a/.github/workflows/prod-build.yml +++ b/.github/workflows/prod-build.yml @@ -282,7 +282,7 @@ jobs: if: ${{ ! vars.SKIP_BUILD }} run: |- gsutil -q -m -h "Cache-Control: public, max-age=86400" cp -r client/build/static gs://${{ vars.GCP_BUCKET_NAME }}/main/ - gsutil -q -m -h "Cache-Control: public, max-age=86400" rsync -cdrj html,json,txt -y "^/static/" client/build gs://${{ vars.GCP_BUCKET_NAME }}/main + gsutil -q -m -h "Cache-Control: public, max-age=86400" rsync -cdrj html,json,txt -y "^static/" client/build gs://${{ vars.GCP_BUCKET_NAME }}/main - name: Authenticate with GCP if: ${{ ! vars.SKIP_FUNCTION }} diff --git a/.github/workflows/stage-build.yml b/.github/workflows/stage-build.yml index cc62046b858e..569fe9599399 100644 --- a/.github/workflows/stage-build.yml +++ b/.github/workflows/stage-build.yml @@ -278,7 +278,7 @@ jobs: if: ${{ ! vars.SKIP_BUILD }} run: |- gsutil -q -m -h "Cache-Control: public, max-age=86400" cp -r client/build/static gs://${{ vars.GCP_BUCKET_NAME }}/main/ - gsutil -q -m -h "Cache-Control: public, max-age=86400" rsync -cdrj html,json,txt -y "^/static/" client/build gs://${{ vars.GCP_BUCKET_NAME }}/main + gsutil -q -m -h "Cache-Control: public, max-age=86400" rsync -cdrj html,json,txt -y "^static/" client/build gs://${{ vars.GCP_BUCKET_NAME }}/main - name: Authenticate with GCP if: ${{ ! vars.SKIP_FUNCTION }} diff --git a/client/src/blog/index.scss b/client/src/blog/index.scss index 2f0f2faf685f..d6a65db3e10d 100644 --- a/client/src/blog/index.scss +++ b/client/src/blog/index.scss @@ -63,6 +63,7 @@ img { max-height: 200px; + width: auto; } }