38 lines
753 B
YAML
38 lines
753 B
YAML
name: Deploy Frontend
|
|
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
paths: ['frontend/**']
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: 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
|
|
- 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: frontend
|
|
version: v1
|