From 93d6cf155b26932ae36e3d9318161baa7c3d1537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lancelot=20de=20Ferri=C3=A8re?= Date: Wed, 27 Oct 2021 15:40:56 +0200 Subject: [PATCH] WIP deploy --- .github/workflows/deploy.yml | 2 +- scripts/deploy.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 scripts/deploy.sh diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 51c42cbd..e87a38fd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,4 +17,4 @@ jobs: export_default_credentials: true - name: SSH to VM & deploy. - run: gcloud compute ssh ${{ secrets.GCP_INSTANCE }} --zone="europe-west3-c" --ssh-key-expire-after=2m --command="git clone https://github.com/S-L-Technologies/brq-builder.git" + run: gcloud compute ssh ${{ secrets.GCP_INSTANCE }} --zone="europe-west3-c" --ssh-key-expire-after=2m --command="git clone https://github.com/S-L-Technologies/brq-builder.git && brq-builder/scripts/deploy.sh" diff --git a/scripts/deploy.sh b/scripts/deploy.sh new file mode 100644 index 00000000..8809438d --- /dev/null +++ b/scripts/deploy.sh @@ -0,0 +1,2 @@ +npm ci +npm run build \ No newline at end of file