aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2021-07-02 16:15:26 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2021-07-02 16:15:26 +0300
commite55c786ad7993310cc6c4aa39c63188404c9ce04 (patch)
tree6539b32c4105800b5757ec3428da448fcfb7ad54 /.github
parent51379ac0fad7b44fb39201a12ef3817894c1ea41 (diff)
Fix workflowHEAD2021.07_07main
Diffstat (limited to '.github')
-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 }}