Setup frontend deployment github action

This commit is contained in:
Ben Grant 2022-08-15 20:55:02 +10:00
parent 722750b2be
commit 4382f559f3
3 changed files with 39 additions and 23 deletions

View file

@ -1,23 +0,0 @@
#!/usr/bin/env bash
yarn build
cd build
cat > app.yaml << EOF
runtime: nodejs12
handlers:
- url: /(.*\..+)$
static_files: \1
upload: (.*\..+)$
secure: always
redirect_http_response_code: 301
- url: /.*
static_files: index.html
upload: index.html
secure: always
redirect_http_response_code: 301
EOF
gcloud app deploy --project=crabfit --version=v1