-
Notifications
You must be signed in to change notification settings - Fork 17
37 lines (37 loc) · 960 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: deploy
on: [push]
jobs:
frontend:
name: frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
run: |
cd frontend
yarn install
yarn run build
yarn run deploy
backend:
name: backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.7.x'
- uses: google-github-actions/setup-gcloud@v1
with:
version: '>= 363.0.0'
project_id: isnamyang
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- run: |
cd backend
pip install -r requirements.txt
python manage.py test
- run: |
cd backend
gcloud -q app deploy app.yaml