40 lines
853 B
YAML
40 lines
853 B
YAML
name: Deploy Frontend
|
|
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
paths: ['crabfit-frontend/**']
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: crabfit-frontend
|
|
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 17
|
|
cache: yarn
|
|
cache-dependency-path: '**/yarn.lock'
|
|
- run: yarn install --immutable
|
|
- run: yarn build
|
|
- name: Copy app.yaml to build
|
|
run: 'cp app.yaml ./dist/app.yaml'
|
|
- id: auth
|
|
uses: google-github-actions/auth@v0
|
|
with:
|
|
credentials_json: '${{ secrets.GCP_SA_KEY }}'
|
|
- id: deploy
|
|
uses: google-github-actions/deploy-appengine@v0
|
|
with:
|
|
working_directory: crabfit-frontend
|
|
version: v1
|