Setup frontend deployment github action
This commit is contained in:
parent
722750b2be
commit
4382f559f3
3 changed files with 39 additions and 23 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue