aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/tomi.science.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/tomi.science.yml b/.github/workflows/tomi.science.yml
index 5230fb1..dd4ecf7 100644
--- a/.github/workflows/tomi.science.yml
+++ b/.github/workflows/tomi.science.yml
@@ -74,6 +74,10 @@ jobs:
- name: Push backend image to registry
run: docker push ${IMAGE_AND_TAG}
+ # Build frontend
+ - name: Build frontend
+ run: cd frontend && npm ci && npm run build && npm run export
+
# Deploy backend to Google Cloud Run
- name: Deploy backend to Cloud Run
run: |-
@@ -86,11 +90,7 @@ jobs:
--set-env-vars=${GCR_ENV_VARS} \
--image=${IMAGE_AND_TAG}
- # Build frontend
- - name: Build frontend
- run: cd frontend && npm ci && npm run build && npm run export
-
# Deploy frontend to GCS
- name: Deploy frontend to GCS
run: |-
- gsutil -h "Cache-Control: no-store, max-age=0" cp -r out/* ${{ env.GCS_BUCKET }}
+ cd frontend && gsutil -h "Cache-Control: no-store, max-age=0" cp -r out/* ${{ env.GCS_BUCKET }}