-
Notifications
You must be signed in to change notification settings - Fork 17
40 lines (40 loc) · 1017 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
38
39
40
name: deploy
on: [push]
jobs:
frontend:
name: frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- 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@v3
- uses: actions/setup-python@v3
with:
python-version: '3.7.x'
- uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- uses: google-github-actions/setup-gcloud@v1
with:
version: '>= 363.0.0'
project_id: isnamyang
- run: |
cd backend
pip install -r requirements.txt
python manage.py test
- run: |
cd backend
gcloud -q app deploy app.yaml